mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
commit
a4ac83aec2
@ -451,7 +451,7 @@ The TeleBot constructor takes the following optional arguments:
|
||||
As an alternative to the message handlers, one can also register a function as a listener to TeleBot. Example:
|
||||
```python
|
||||
def handle_messages(messages):
|
||||
for message in messsages:
|
||||
for message in messages:
|
||||
# Do something with the message
|
||||
bot.reply_to(message, 'Hi')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user