From f9b9a3848930ec9e5b52e79271a96a80ac1a79a8 Mon Sep 17 00:00:00 2001 From: olivka86 <36050417+olivka86@users.noreply.github.com> Date: Wed, 9 Mar 2022 15:05:18 +0300 Subject: [PATCH] Update callback_bot.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Неполный путь до ключа from_id --- examples/callback_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/callback_bot.py b/examples/callback_bot.py index 3c0d8ed8..db573b1d 100644 --- a/examples/callback_bot.py +++ b/examples/callback_bot.py @@ -49,7 +49,7 @@ def bot(): # если же это сообщение, отвечаем пользователю elif data['type'] == 'message_new': # получаем ID пользователя - from_id = data['object']['from_id'] + from_id = data['object']['message']['from_id'] # отправляем сообщение vk.messages.send( message='Hello World!',