Fixed a typo

This commit is contained in:
Pieter van den Ham 2015-08-23 20:07:06 +02:00
parent 7f68bbbdb9
commit 00f7c1ddc0
1 changed files with 2 additions and 2 deletions

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()