mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
Updated Extensions – Your first Bot (markdown)
parent
cb52ed76fc
commit
7d7f6a44b0
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ Some confused users might try to send commands to the bot that it doesn't unders
|
|||
|
||||
```python
|
||||
>>> def unknown(bot, update):
|
||||
... bot.sendMessage(chat_id=update.message.chat_id, text="Sorry, I didn't understand that command.")
|
||||
... bot.sendMessage(chat_id=update.message.chat_id, text="Sorry, I didn't understand that command.")
|
||||
...
|
||||
>>> unknown_handler = MessageHandler([Filters.command], unknown)
|
||||
>>> dispatcher.add_handler(unknown_handler)
|
||||
|
|
Loading…
Reference in a new issue