-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
Currently, CommandHandler only works in Messages. However, it would be very useful to support commands in channels as well. It should be easy to make this change: simply checking Update.effective_message instead of Update.message.
python-telegram-bot/telegram/ext/commandhandler.py
Lines 132 to 136 in e018445
| if (isinstance(update, Update) | |
| and (update.message or update.edited_message and self.allow_edited)): | |
| message = update.message or update.edited_message | |
| if message.text: |
Metadata
Metadata
Assignees
Labels
No labels