Skip to content

Commit b3ebea5

Browse files
authored
Add message_thread_id=1 for General ForumTopic
1 parent 26c2d73 commit b3ebea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyrogram/types/messages_and_media/message.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,8 @@ async def _parse(
14041404
parsed_message.message_thread_id = message.reply_to.reply_to_top_id
14051405
else:
14061406
parsed_message.message_thread_id = message.reply_to.reply_to_msg_id
1407+
if not parsed_message.message_thread_id:
1408+
parsed_message.message_thread_id = 1 # https://t.me/c/1279877202/31475
14071409
if getattr(message.reply_to, "quote", False):
14081410
parsed_message.quote = types.TextQuote._parse(
14091411
client,

0 commit comments

Comments
 (0)