mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fixed bug with LoginUrl
This commit is contained in:
parent
3c62e9d391
commit
600002e158
@ -916,7 +916,7 @@ class InlineKeyboardButton(JsonSerializable):
|
|||||||
self.switch_inline_query_current_chat = switch_inline_query_current_chat
|
self.switch_inline_query_current_chat = switch_inline_query_current_chat
|
||||||
self.callback_game = callback_game
|
self.callback_game = callback_game
|
||||||
self.pay = pay
|
self.pay = pay
|
||||||
self.login_url = login_url.to_dic()
|
self.login_url = login_url
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
return json.dumps(self.to_dic())
|
return json.dumps(self.to_dic())
|
||||||
@ -936,7 +936,7 @@ class InlineKeyboardButton(JsonSerializable):
|
|||||||
if self.pay is not None:
|
if self.pay is not None:
|
||||||
json_dic['pay'] = self.pay
|
json_dic['pay'] = self.pay
|
||||||
if self.login_url is not None:
|
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
|
return json_dic
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user