mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-26 17:17:17 +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
|
```python
|
||||||
>>> def unknown(bot, update):
|
>>> 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)
|
>>> unknown_handler = MessageHandler([Filters.command], unknown)
|
||||||
>>> dispatcher.add_handler(unknown_handler)
|
>>> dispatcher.add_handler(unknown_handler)
|
||||||
|
|
Loading…
Reference in a new issue