Skip to content

Commit 0654151

Browse files
author
Pietro Albini
committed
Fix wrong behavior of the extra= argument of send*
This isn't used in any documented features yet, but someone reported me it wasn't working.
1 parent fbd67c1 commit 0654151

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

botogram/objects/mixins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import importlib
1010
import types
11+
import json
1112

1213
from .. import utils
1314
from .. import syntaxes
@@ -56,7 +57,7 @@ def _get_call_args(self, reply_to, extra, notify=True):
5657
if reply_to is not None:
5758
args["reply_to_message_id"] = reply_to
5859
if extra is not None:
59-
args["reply_markup"] = extra.serialize()
60+
args["reply_markup"] = json.dumps(extra.serialize())
6061
if not notify:
6162
args["disable_notification"] = True
6263

0 commit comments

Comments
 (0)