mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update README.md
This commit is contained in:
parent
c7d2731559
commit
70fa5b405a
@ -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:
|
As an alternative to the message handlers, one can also register a function as a listener to TeleBot. Example:
|
||||||
```python
|
```python
|
||||||
def handle_messages(messages):
|
def handle_messages(messages):
|
||||||
for message in messsages:
|
for message in messages:
|
||||||
# Do something with the message
|
# Do something with the message
|
||||||
bot.reply_to(message, 'Hi')
|
bot.reply_to(message, 'Hi')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user