Skip to content

Add true reply filter#149

Open
rozari0 wants to merge 2 commits intopython-telegram-bot:mainfrom
rozari0:main
Open

Add true reply filter#149
rozari0 wants to merge 2 commits intopython-telegram-bot:mainfrom
rozari0:main

Conversation

@rozari0
Copy link

@rozari0 rozari0 commented Mar 18, 2026

Telegram API sends the topic creation message as reply_to_message for every message in a topic, which causes bots to treat every message as a reply.

This filter checks if a message is in a topic and then verifies whether the message_thread_id is the same as the topic creation message 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