Skip to content

Improved CommandHandler - #613

Merged
jh0ker merged 5 commits into
python-telegram-bot:masterfrom
evgfilim1:commandhandler-improvement
May 19, 2017
Merged

Improved CommandHandler#613
jh0ker merged 5 commits into
python-telegram-bot:masterfrom
evgfilim1:commandhandler-improvement

Conversation

@evgfilim1

Copy link
Copy Markdown
Contributor

Now you can pass list of commands instead of one command
It will be useful when you define some aliases for command or if commands (such as /start and /help) has the same behaviour

evgfilim1 added 4 commits May 16, 2017 07:51
Now you can pass list of commands instead of one command
Renamed `commands` to `command` in CommandHandler
Comment thread telegram/ext/commandhandler.py Outdated
pass_user_data=pass_user_data,
pass_chat_data=pass_chat_data)
self.command = command
if isinstance(command, str):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could fail on python 2, if command is a unicode string

@evgfilim1

Copy link
Copy Markdown
Contributor Author

@jh0ker Fixed

@jh0ker

jh0ker commented May 19, 2017

Copy link
Copy Markdown
Member

Thanks :) I'll merge once the Travis tests are green

@jh0ker
jh0ker merged commit 33512ff into python-telegram-bot:master May 19, 2017
@evgfilim1
evgfilim1 deleted the commandhandler-improvement branch May 19, 2017 18:32
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants