From bc057e935efae1466c1e41f2744c3c1aad17e2e6 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sat, 27 Jan 2024 22:57:35 -0500 Subject: [PATCH] update readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4268ea3..5170d90 100644 --- a/README.md +++ b/README.md @@ -25,16 +25,14 @@ from deltabot_cli import BotCli, events cli = BotCli("echobot") - @cli.on(events.RawEvent) def log_event(event): logging.info(event) - @cli.on(events.NewMessage) def echo(event): - event.chat.send_text(event.text) - + msg = event.msg + event.rpc.misc_send_text_message(event.accid, msg.chat_id, msg.text) if __name__ == "__main__": cli.start()