mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 11:10:18 +03:00
add login button
This commit is contained in:
parent
ec093f90e7
commit
b800fad8e1
|
@ -73,6 +73,10 @@ class Button:
|
|||
|
||||
return types.KeyboardButtonCallback(text, data)
|
||||
|
||||
@staticmethod
|
||||
def login(text, url, bot, request_write_access=None, fwd_text=None):
|
||||
return types.InputKeyboardButtonUrlAuth(text, url, bot, request_write_access, fwd_text)
|
||||
|
||||
@staticmethod
|
||||
def switch_inline(text, query='', same_peer=False):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user