diff --git a/telethon/tl/custom/draft.py b/telethon/tl/custom/draft.py index 88aec35a..1fa6514d 100644 --- a/telethon/tl/custom/draft.py +++ b/telethon/tl/custom/draft.py @@ -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)