Skip to content

Allow commands ending with bot mention (handle /command@botname)#1298

Open
mslxl wants to merge 2 commits intocodebam:masterfrom
mslxl:master
Open

Allow commands ending with bot mention (handle /command@botname)#1298
mslxl wants to merge 2 commits intocodebam:masterfrom
mslxl:master

Conversation

@mslxl
Copy link

@mslxl mslxl commented Oct 28, 2025

Telegram allows commands to include the bot username (e.g., /command@BotName) when used in group chats or when addressing a specific bot. Without stripping the @botName suffix, a valid command could fail to match the registered command handler, leading to unexpected default behavior. This commit fixes that.

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