mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix init of custom Draft after layer update
This commit is contained in:
parent
046dbb58b8
commit
b17e10af1d
|
@ -37,7 +37,7 @@ class Draft:
|
|||
self._raw_text = draft.message
|
||||
self.date = draft.date
|
||||
self.link_preview = not draft.no_webpage
|
||||
self.reply_to_msg_id = draft.reply_to_msg_id
|
||||
self.reply_to_msg_id = draft.reply_to.reply_to_msg_id if isinstance(draft.reply_to, types.InputReplyToMessage) else None
|
||||
|
||||
@property
|
||||
def entity(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user