Skip to content

Commit

Permalink
Add message_thread_id=1 for General ForumTopic
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe authored Jan 27, 2025
1 parent 26c2d73 commit b3ebea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,8 @@ async def _parse(
parsed_message.message_thread_id = message.reply_to.reply_to_top_id
else:
parsed_message.message_thread_id = message.reply_to.reply_to_msg_id
if not parsed_message.message_thread_id:
parsed_message.message_thread_id = 1 # https://t.me/c/1279877202/31475
if getattr(message.reply_to, "quote", False):
parsed_message.quote = types.TextQuote._parse(
client,
Expand Down

0 comments on commit b3ebea5

Please sign in to comment.