From 6bd00c6ff2468f89355967223ecb4cc930742aab Mon Sep 17 00:00:00 2001 From: Kylmakalle Date: Sun, 2 Jul 2017 03:47:49 +0300 Subject: [PATCH] Fixed dialog notifications --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index ea34c50..ce07a00 100644 --- a/bot.py +++ b/bot.py @@ -130,7 +130,7 @@ def callback_buttons(call): 'Вы в беседе {}'.format(replace_shields(chat['title']))).wait() if chat['title'].replace('\\', ''): chat['title'] = chat['title'].replace('\\', '') - bot.send_message(call.message.from_user.id, + bot.send_message(call.from_user.id, 'Вы в беседе {}'.format(chat['title']), parse_mode='HTML').wait() currentchat[str(call.from_user.id)] = call.data @@ -140,7 +140,7 @@ def callback_buttons(call): user = vk.API(session).users.get(user_ids=call.data, fields=[])[0] bot.answer_callback_query(call.id, 'Вы в чате с {} {}'.format(user['first_name'], user['last_name'])).wait() - bot.send_message(call.message.from_user.id, + bot.send_message(call.from_user.id, 'Вы в чате с {} {}'.format(user['first_name'], user['last_name']), parse_mode='HTML').wait() currentchat[str(call.from_user.id)] = call.data