From d55950af6c4bf6fdfd84dfff1820fa233e109623 Mon Sep 17 00:00:00 2001 From: Devesh Pal <69723581+New-dev0@users.noreply.github.com> Date: Mon, 5 Jul 2021 22:40:57 +0530 Subject: [PATCH] Revert --- telethon/tl/custom/button.py | 13 ------------- 1 file changed, 13 deletions(-) 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): """