You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on line 45 of telegram/ext/commandhandler.py
It is not checking for the target of command issued by user.
Suggested changes
Check for commands with @ for whether it's pointed to the bot.
Add a parameter to CommandHandler: toggle whether if the bot should respond to simple commands (command without @name_of_the_bot) in a group, and default it to True. (for backward compatibility, and behaviour consistancy)
Steps to reproduce
@botfather, and drag it in a group with other bots (which should respond to/startcommand in a group)./start@some_other_botto the group, and your bot will respond to it./startto the group and your bot (and in fact many other bots) will respond to it too.Expected behaviour
Bot should not respond to cmds not pointing to it, and better give an option not to respond to cmd with no target in a group.
Configuration
Operating System:
Mac OS X El Capitan
Version of Python:
$ python3 -VPython 3.5.1Version of python-telegram-bot:
$ python3 -c 'import telegram; print(telegram.__version__)'4.1.1Logs
Insert logs here (if necessary)
Where the issue happens
on line 45 of
telegram/ext/commandhandler.pyIt is not checking for the target of command issued by user.
Suggested changes
@for whether it's pointed to the bot.CommandHandler: toggle whether if the bot should respond to simple commands (command without@name_of_the_bot) in a group, and default it to True. (for backward compatibility, and behaviour consistancy)