Skip to content

Commit

Permalink
Added support for launching Web Apps via t.me link in the class Menu…
Browse files Browse the repository at this point in the history
…ButtonWebApp.
  • Loading branch information
coder2020official committed Jul 1, 2024
1 parent ecde954 commit 5117807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7543,7 +7543,9 @@ class MenuButtonWebApp(MenuButton):
:type text: :obj:`str`
:param web_app: Description of the Web App that will be launched when the user presses the button. The Web App will be
able to send an arbitrary message on behalf of the user using the method answerWebAppQuery.
able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Alternatively, a t.me link
to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be
opened as if the user pressed the link.
:type web_app: :class:`telebot.types.WebAppInfo`
:return: Instance of the class
Expand Down

0 comments on commit 5117807

Please sign in to comment.