telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

sendMessage with "message_thread_id=1" returns "BadRequest: Message thread not found"

Open gerkatheking opened this issue 1 month ago • 4 comments

this is the original report from another person https://github.com/python-telegram-bot/python-telegram-bot/issues/4739#issue-2959833823

it is impossible to "reply in another chat" using sendMessage when destination is general topic of the chat. if you set message_thread_id 1 => 400 message thread not found if you don't specify message_thread_id it replies in the source thread of reply_to_message_id message.

gerkatheking avatar Dec 07 '25 21:12 gerkatheking

Does the forum chat have more than 1 million messages?

levlam avatar Dec 08 '25 10:12 levlam

No, It reproduces in empty chat.

gerkatheking avatar Dec 08 '25 12:12 gerkatheking

Are you sure that the chat is a forum chat?

levlam avatar Dec 08 '25 18:12 levlam

yes and sendMessage response has "is_forum": true

gerkatheking avatar Dec 08 '25 21:12 gerkatheking