Update README.md

This commit is contained in:
_run 2021-12-12 15:54:06 +05:00 committed by GitHub
parent e5f0ba67fc
commit ba9bf17f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -717,6 +717,7 @@ Echo Bot example on AsyncTeleBot:
# It echoes any incoming text messages.
from telebot.async_telebot import AsyncTeleBot
import asyncio
bot = AsyncTeleBot('TOKEN')
@ -736,7 +737,7 @@ async def echo_message(message):
await bot.reply_to(message, message.text)
bot.polling()
asyncio.run(bot.polling())
```
As you can see here, keywords are await and async.