From 600002e1581a6fe457d96d2f6f0213c2b1f978e7 Mon Sep 17 00:00:00 2001 From: Vova Pytsyuk Date: Sat, 15 Jun 2019 23:09:59 +0300 Subject: [PATCH] Fixed bug with LoginUrl --- telebot/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index bdc5bbc..4de616a 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -916,7 +916,7 @@ class InlineKeyboardButton(JsonSerializable): self.switch_inline_query_current_chat = switch_inline_query_current_chat self.callback_game = callback_game self.pay = pay - self.login_url = login_url.to_dic() + self.login_url = login_url def to_json(self): return json.dumps(self.to_dic()) @@ -936,7 +936,7 @@ class InlineKeyboardButton(JsonSerializable): if self.pay is not None: json_dic['pay'] = self.pay if self.login_url is not None: - json_dic['login_url'] = self.login_url + json_dic['login_url'] = self.login_url.to_dic() return json_dic