Skip to content

Commit 68835c2

Browse files
MagMuellerMagnus Müller
andauthored
Omit empty agency-report reply markup (#260)
Co-authored-by: Magnus Müller <magnus@browser-use.com>
1 parent b6daec2 commit 68835c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

agent/agency-report

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,9 @@ def send_card(
423423
fields = {
424424
**base_fields,
425425
"caption": body,
426-
"reply_markup": reply_markup_json,
427426
}
427+
if reply_markup_json:
428+
fields["reply_markup"] = reply_markup_json
428429
files = {"photo": (path.name, path.read_bytes(), ctype)}
429430
method = "sendPhoto"
430431
# sendPhoto caption max is 1024 chars. If we'd exceed, truncate

0 commit comments

Comments
 (0)