Skip to content

Conversation

@shrustam
Copy link

if reply to story is in replies chain then client.get_messages(chat_id, reply_to_message_ids=reply_id, replies=-1) raises Exception.

File "...\Lib\site-packages\pyrogram\methods\messages\get_messages.py", line 119, in get_messages messages = await utils.parse_messages(self, r, replies=replies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...\Lib\site-packages\pyrogram\utils.py", line 137, in parse_messages i.id: {'user_id': i.reply_to.user_id, 'story_id': i.reply_to.story_id} ^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageReplyStoryHeader' object has no attribute 'user_id'

fix AttributeError for MessageReplyStoryHeader missing user_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant