add more high-level event filters

This commit is contained in:
adbenitez
2022-12-21 13:25:46 -05:00
parent 2ebd3f54e6
commit adf754ad32
13 changed files with 272 additions and 44 deletions

View File

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