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