Fix Message finish init for reply_to stories

This commit is contained in:
Lonami Exo 2024-01-31 21:57:30 +01:00
parent 63d9b267f4
commit 70201a9ff1

View File

@ -335,7 +335,7 @@ class Message(ChatGetter, SenderGetter, TLObject):
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: