Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
"Official" Bot commands with trailing usernames don't work in groups #139
Comments
|
I would like to work on it. |
|
Sure, if you have any idea feel free to propose a pull request |
|
I don't know if this would work, but would it make sense to just use regex?
|
|
@ColinTheShark The issue is how to get the bot username to be used inside the filter, automatically. While we have the Maybe we can just match |
|
Using such a generic Regex would possibly catch updates meant for other clients If my bot were (Commenting here parallel to the discussion in the chat to have it in the Issues, too) |
|
Would it make sense to always call get_me() on Client.start() and make that info available? I guess there are more scenarios where that would be useful... |
Example:
/start@pyrogrambotWorkaround:
Filters.command(["start", "start@pyrogrambot])Would be nice to have it automatically handled.