From de123ecb9437c1167c1a5d17bc71638e316e7c17 Mon Sep 17 00:00:00 2001 From: Devesh Pal Date: Sat, 28 Aug 2021 23:22:32 +0530 Subject: [PATCH] Update button.py --- telethon/tl/custom/button.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/tl/custom/button.py b/telethon/tl/custom/button.py index 63e5a5b7..0b508783 100644 --- a/telethon/tl/custom/button.py +++ b/telethon/tl/custom/button.py @@ -51,6 +51,7 @@ class Button: return isinstance(button, ( types.KeyboardButtonBuy, types.KeyboardButtonCallback, + types.KeyboardButtonGame, types.KeyboardButtonSwitchInline, types.KeyboardButtonUrl, types.InputKeyboardButtonUrlAuth @@ -283,7 +284,7 @@ class Button: It should be the first button of the Invoice. On Not Specifying Button, Telegram will Automatically add button to That Invoice. Read More - https://core.telegram.org/api/payments - + Args: text (str): text to show on the Buy Button.