mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Revert
This commit is contained in:
parent
5b6305f64a
commit
d55950af6c
|
@ -49,7 +49,6 @@ class Button:
|
|||
Returns `True` if the button belongs to an inline keyboard.
|
||||
"""
|
||||
return isinstance(button, (
|
||||
types.KeyboardButtonBuy,
|
||||
types.KeyboardButtonCallback,
|
||||
types.KeyboardButtonSwitchInline,
|
||||
types.KeyboardButtonUrl,
|
||||
|
@ -164,18 +163,6 @@ class Button:
|
|||
fwd_text=fwd_text
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def buy(text):
|
||||
"""
|
||||
Create a inline button to Buy a Product.
|
||||
It can be only used with Invoice.
|
||||
It should be the first button of the Invoice.
|
||||
On Not using this, Telegram will Automatically add button to it.
|
||||
Read More - https://core.telegram.org/api/payments
|
||||
"""
|
||||
return types.KeyboardButtonBuy(text)
|
||||
|
||||
|
||||
@classmethod
|
||||
def text(cls, text, *, resize=None, single_use=None, selective=None):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user