1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fixed a typo

This commit is contained in:
Pieter van den Ham 2015-08-23 20:07:06 +02:00
parent 7f68bbbdb9
commit 00f7c1ddc0

View File

@ -304,10 +304,10 @@ Example: `tb.polling(none_stop=True)`
### The listener mechanism
As an alternative to the message handlers, one can also register a function as a listener to TeleBot. Example:
```python
def handle_messages(message):
def handle_messages(messages):
for message in messsages:
# Do something with the message
bot.reply_to(message, 'hi')
bot.reply_to(message, 'Hi')
bot.set_update_listener(handle_messages)
bot.polling()