mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 11:10:18 +03:00
Merge branch 'asyncio' of https://github.com/LonamiWebs/Telethon into asyncio-upstream
* 'asyncio' of https://github.com/LonamiWebs/Telethon: Duplicate commit from master to handle empty draft msg
This commit is contained in:
commit
85103bcf6d
|
@ -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