diff --git a/restoran_max_bot/restoran_max_bot/command_handlers.py b/restoran_max_bot/restoran_max_bot/command_handlers.py index 144736a..286c452 100644 --- a/restoran_max_bot/restoran_max_bot/command_handlers.py +++ b/restoran_max_bot/restoran_max_bot/command_handlers.py @@ -76,7 +76,7 @@ def handle_standard_command(client: Client, chat_id: str, settings_max: dict, da # Кнопка-ссылка if is_json(item.title): data_json = json.loads(item.title) - if data_json.get('type') == 'linkbutton': + if isinstance(data_json, dict) and data_json.get('type') == 'linkbutton': send_link_button(chat_id, token, item.descr, data_json['button'], item.url) log_user_action( client=client,