Hi,
I noticed an issue with forum topics and message_thread_id.
If a topic is deleted manually in the bot's private chat, and the bot later sends a message using the old `message_thread_id, the API does not return any error. Instead, the parameter seems to be ignored silently and the message is sent to the main chat.
This makes it impossible for bots to reliably detect that the topic no longer exists and recreate it when needed.
Steps:
- Enable topic mode for bot private chats
- Create a topic using telegram bot api
- delete that topic
- now sendMessage and set using old message_thread_id from number 2
You'll see telegram ignores the message_thread_id and sends message to the main chat.
If you do this in the groups you'll get this error: Bad Request: message thread not found
Hi,
I noticed an issue with forum topics and
message_thread_id.If a topic is deleted manually in the bot's private chat, and the bot later sends a message using the old `message_thread_id, the API does not return any error. Instead, the parameter seems to be ignored silently and the message is sent to the main chat.
This makes it impossible for bots to reliably detect that the topic no longer exists and recreate it when needed.
Steps:
You'll see telegram ignores the message_thread_id and sends message to the main chat.
If you do this in the groups you'll get this error: Bad Request: message thread not found