!user_id hot fix

This commit is contained in:
dan63047 2020-04-15 13:45:05 +03:00
parent c828760435
commit fda763110c
1 changed files with 5 additions and 3 deletions

View File

@ -149,9 +149,11 @@ class VkBot:
logger.warning("Ошибка метода users.get: " + str(lol)) logger.warning("Ошибка метода users.get: " + str(lol))
return "Пользователь не найден<br>" + str(lol) return "Пользователь не найден<br>" + str(lol)
logger.info("Результат метода API users.get: " + str(user_info)) if "deactivated" in user_info[0]:
if user_info[0]['first_name'] == "DELETED": if user_info[0]['deactivated'] == 'banned':
return "Профиль был удалён" return user_info[0]['first_name'] + " " + user_info[0]['last_name'] + " забанен"
elif user_info[0]['deactivated'] == 'deleted':
return "Профиль был удалён"
if user_info[0]['is_closed']: if user_info[0]['is_closed']:
is_closed = "Да" is_closed = "Да"