mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Add missing async/await to events' documentation
This commit is contained in:
@@ -79,8 +79,8 @@ Handling Updates
|
||||
from telethon import events
|
||||
|
||||
@client.on(events.NewMessage(incoming=True, pattern='(?i)hi'))
|
||||
def handler(event):
|
||||
event.reply('Hello!')
|
||||
async def handler(event):
|
||||
await event.reply('Hello!')
|
||||
|
||||
client.run_until_disconnected()
|
||||
|
||||
|
Reference in New Issue
Block a user