mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
fix AttributeError: 'PeerUser' object has no attribute 'channel_id'
This commit is contained in:
parent
01f5a9d1ca
commit
8d9f6132f5
1 changed files with 2 additions and 2 deletions
|
|
@ -1143,9 +1143,9 @@ class Message(Object, Update):
|
|||
parsed_message.reply_to_top_message_id = message.reply_to.reply_to_top_id
|
||||
else:
|
||||
parsed_message.reply_to_story_id = message.reply_to.story_id
|
||||
if isinstance(message.reply_to, raw.types.PeerUser):
|
||||
if isinstance(message.reply_to.peer, raw.types.PeerUser):
|
||||
parsed_message.reply_to_story_user_id = message.reply_to.peer.user_id
|
||||
elif isinstance(message.reply_to, raw.types.PeerChat):
|
||||
elif isinstance(message.reply_to.peer, raw.types.PeerChat):
|
||||
parsed_message.reply_to_story_chat_id = utils.get_channel_id(message.reply_to.peer.chat_id)
|
||||
else:
|
||||
parsed_message.reply_to_story_chat_id = utils.get_channel_id(message.reply_to.peer.channel_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue