diff --git a/telethon/tl/custom/draft.py b/telethon/tl/custom/draft.py index afd47462..bde965e8 100644 --- a/telethon/tl/custom/draft.py +++ b/telethon/tl/custom/draft.py @@ -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):