Fix init of custom Draft after layer update

This commit is contained in:
Lonami Exo 2023-10-29 11:41:54 +01:00
parent 046dbb58b8
commit b17e10af1d

View File

@ -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):