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