Revert d392939 and use empty tuple as a sentinel value

This commit is contained in:
Lonami Exo
2018-10-08 11:33:56 +02:00
parent 27345d5749
commit 32c884d543
5 changed files with 15 additions and 17 deletions

View File

@@ -9,7 +9,6 @@ from io import BytesIO
from .buttons import ButtonMethods
from .messageparse import MessageParseMethods
from .users import UserMethods
from .. import default
from .. import utils, helpers
from ..tl import types, functions, custom
@@ -23,7 +22,7 @@ class UploadMethods(ButtonMethods, MessageParseMethods, UserMethods):
async def send_file(
self, entity, file, *, caption='', force_document=False,
progress_callback=None, reply_to=None, attributes=None,
thumb=None, allow_cache=True, parse_mode=default,
thumb=None, allow_cache=True, parse_mode=(),
voice_note=False, video_note=False, buttons=None, silent=None,
**kwargs):
"""
@@ -183,7 +182,7 @@ class UploadMethods(ButtonMethods, MessageParseMethods, UserMethods):
async def _send_album(self, entity, files, caption='',
progress_callback=None, reply_to=None,
parse_mode=default, silent=None):
parse_mode=(), silent=None):
"""Specialized version of .send_file for albums"""
# We don't care if the user wants to avoid cache, we will use it
# anyway. Why? The cached version will be exactly the same thing