From 8dfd7f264186f9acec95d9c0c693cf8050d9a0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=BCller?= Date: Wed, 20 May 2026 15:13:25 +0000 Subject: [PATCH] Omit empty agency-report reply markup --- agent/agency-report | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agency-report b/agent/agency-report index 0f348e6..18f4d54 100755 --- a/agent/agency-report +++ b/agent/agency-report @@ -423,8 +423,9 @@ def send_card( fields = { **base_fields, "caption": body, - "reply_markup": reply_markup_json, } + if reply_markup_json: + fields["reply_markup"] = reply_markup_json files = {"photo": (path.name, path.read_bytes(), ctype)} method = "sendPhoto" # sendPhoto caption max is 1024 chars. If we'd exceed, truncate