mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +03:00
Duplicate commit from master to handle empty draft msg
Telegram seems to have changed something in their servers and now this is sent.
This commit is contained in:
parent
cb75092ba1
commit
097acd874b
|
@ -26,7 +26,7 @@ class Draft:
|
|||
def __init__(self, client, peer, draft):
|
||||
self._client = client
|
||||
self._peer = peer
|
||||
if not draft:
|
||||
if not draft or not isinstance(draft, DraftMessage):
|
||||
draft = DraftMessage('', None, None, None, None)
|
||||
|
||||
self._text = markdown.unparse(draft.message, draft.entities)
|
||||
|
|
Loading…
Reference in New Issue
Block a user