Skip to content

Commit

Permalink
Fix Message finish init for reply_to stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jan 31, 2024
1 parent 63d9b26 commit 70201a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telethon/tl/custom/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def _finish_init(self, client, entities, input_chat):
self._linked_chat = entities.get(utils.get_peer_id(
types.PeerChannel(self.replies.channel_id)))

if self.reply_to:
if isinstance(self.reply_to, types.MessageReplyHeader):
if self.reply_to.reply_to_peer_id:
self._reply_to_chat = entities.get(utils.get_peer_id(self.reply_to.reply_to_peer_id))
if self.reply_to.reply_from:
Expand Down

0 comments on commit 70201a9

Please sign in to comment.