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

@@ -3,7 +3,6 @@ import datetime
from .. import TLObject
from ..functions.messages import SaveDraftRequest
from ..types import UpdateDraftMessage, DraftMessage
from ... import default
from ...errors import RPCError
from ...extensions import markdown
from ...utils import get_peer_id, get_input_peer
@@ -117,7 +116,7 @@ class Draft:
return not self._text
async def set_message(
self, text=None, reply_to=0, parse_mode=default,
self, text=None, reply_to=0, parse_mode=(),
link_preview=None):
"""
Changes the draft message on the Telegram servers. The changes are
@@ -164,7 +163,7 @@ class Draft:
return result
async def send(self, clear=True, parse_mode=default):
async def send(self, clear=True, parse_mode=()):
"""
Sends the contents of this draft to the dialog. This is just a
wrapper around ``send_message(dialog.input_entity, *args, **kwargs)``.