diff --git a/telethon/tl/custom/button.py b/telethon/tl/custom/button.py index 7ce6e676..134fbec7 100644 --- a/telethon/tl/custom/button.py +++ b/telethon/tl/custom/button.py @@ -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): """