From 85cc4dacadb182f1f19a9635a9b907b274cbd507 Mon Sep 17 00:00:00 2001 From: Mikhail Kuznetsov <61391551+kuznetsov-m@users.noreply.github.com> Date: Sat, 23 May 2020 16:28:00 +0300 Subject: [PATCH] Update echo_bot.py Fix: Replace event.from to event.data['chat']['chatId'] --- example/echo_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/echo_bot.py b/example/echo_bot.py index 7fc12f9..3cdaf18 100644 --- a/example/echo_bot.py +++ b/example/echo_bot.py @@ -7,7 +7,7 @@ def message_cb(bot, event): - bot.send_text(chat_id=event.from_chat, text=event.text) + bot.send_text(chat_id=event.data['chat']['chatId'] text=event.data['text']) bot.dispatcher.add_handler(MessageHandler(callback=message_cb))