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()