improve hook filters

This commit is contained in:
adbenitez
2022-12-10 19:22:57 -05:00
parent 1f7ad78f40
commit be63e18ebf
6 changed files with 87 additions and 25 deletions

View File

@@ -17,8 +17,8 @@ async def log_event(event):
@hooks.on(events.NewMessage)
async def echo(msg):
await msg.chat.send_text(msg.text)
async def echo(event):
await event.chat.send_text(event.text)
if __name__ == "__main__":