Skip to content

Commit b2449e6

Browse files
committed
Add pay in inline keyboard btn,
1 parent 708635e commit b2449e6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎telebot/types.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,13 +794,14 @@ def to_dic(self):
794794

795795
class InlineKeyboardButton(JsonSerializable):
796796
def __init__(self, text, url=None, callback_data=None, switch_inline_query=None,
797-
switch_inline_query_current_chat=None, callback_game=None):
797+
switch_inline_query_current_chat=None, callback_game=None, pay = None):
798798
self.text = text
799799
self.url = url
800800
self.callback_data = callback_data
801801
self.switch_inline_query = switch_inline_query
802802
self.switch_inline_query_current_chat = switch_inline_query_current_chat
803803
self.callback_game = callback_game
804+
self.pay = pay
804805

805806
def to_json(self):
806807
return json.dumps(self.to_dic())
@@ -817,6 +818,8 @@ def to_dic(self):
817818
json_dic['switch_inline_query_current_chat'] = self.switch_inline_query_current_chat
818819
if self.callback_game is not None:
819820
json_dic['callback_game'] = self.callback_game
821+
if self.pay is not None:
822+
json_dic['pay'] = self.pay
820823
return json_dic
821824

822825

0 commit comments

Comments
 (0)