Update button.py

This commit is contained in:
Devesh Pal 2021-08-28 23:22:32 +05:30 committed by GitHub
parent 89c062f0cf
commit de123ecb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ class Button:
return isinstance(button, ( return isinstance(button, (
types.KeyboardButtonBuy, types.KeyboardButtonBuy,
types.KeyboardButtonCallback, types.KeyboardButtonCallback,
types.KeyboardButtonGame,
types.KeyboardButtonSwitchInline, types.KeyboardButtonSwitchInline,
types.KeyboardButtonUrl, types.KeyboardButtonUrl,
types.InputKeyboardButtonUrlAuth types.InputKeyboardButtonUrlAuth
@ -283,7 +284,7 @@ class Button:
It should be the first button of the Invoice. It should be the first button of the Invoice.
On Not Specifying Button, Telegram will Automatically add button to That Invoice. On Not Specifying Button, Telegram will Automatically add button to That Invoice.
Read More - https://core.telegram.org/api/payments Read More - https://core.telegram.org/api/payments
Args: Args:
text (str): text (str):
text to show on the Buy Button. text to show on the Buy Button.