From 847995163541f1ce5298d154888070de2c18b6cf Mon Sep 17 00:00:00 2001 From: pilot <657434@03b.ru> Date: Sun, 9 Aug 2026 14:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20Att?= =?UTF-8?q?ributeError=20=D0=BF=D1=80=D0=B8=20=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=BA=D0=B5=20JSON-=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D1=85=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BD=D0=BE=D0=BF?= =?UTF-8?q?=D0=BE=D0=BA-=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA.=20=D0=97?= =?UTF-8?q?=D0=B0=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE=20=D1=83=D1=81=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D0=B5=20'if=20'type'=20in=20dt.title'=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83?= =?UTF-8?q?=20=D0=B2=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D0=BC=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restoran_max_bot/restoran_max_bot/command_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,