Skip to content

fix: accept commands addressed to the bot's extra usernames - #57

Open
darxnet wants to merge 1 commit into
mainfrom
fix/active-usernames
Open

darxnet wants to merge 1 commit into
mainfrom
fix/active-usernames

Conversation

@darxnet

@darxnet darxnet commented Nov 16, 2026

Copy link
Copy Markdown
Owner

"/cmd@username" was matched only against the username from getMe, so a
command sent to one of the bot's collectible usernames was treated as
addressed to another bot. A username that differs from the main one now
costs one getChat on the bot's own id, cached, and is accepted when it is
among active_usernames. A failed getChat is not cached and the command
is treated as before.

"/cmd@username" was matched only against the username from getMe, so a
command sent to one of the bot's collectible usernames was treated as
addressed to another bot. A username that differs from the main one now
costs one getChat on the bot's own id, cached, and is accepted when it is
among active_usernames. A failed getChat is not cached and the command
is treated as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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