From 8bdbc2401469a743f6f871c590d7a1b1a3f238e6 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Mon, 13 Nov 2017 10:25:39 +0800 Subject: [PATCH] Fix ShippingOption to_json. #414 --- telebot/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index a23e054..f060842 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -1814,7 +1814,7 @@ class ShippingOption(JsonSerializable): price_list = [] for p in self.prices: price_list.append(p.to_dic()) - json_dict = {'id': self.id, 'title': self.title, 'prices': price_list} + json_dict = json.dumps({'id': self.id, 'title': self.title, 'prices': price_list}) return json_dict