telegram.MenuButtonWebApp

class telegram.MenuButtonWebApp(*args, **kwargs)[source]

Bases: telegram.MenuButton

Represents a menu button, which launches a Web App.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their type, text and web_app are equal.

New in version 20.0.

Parameters
  • text (str) – Text of the button.

  • web_app (telegram.WebAppInfo) – 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().

type[source]

'web_app'.

Type

str

text[source]

Text of the button.

Type

str

web_app[source]

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().

Type

telegram.WebAppInfo

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().

to_dict()[source]

See telegram.TelegramObject.to_dict().