class aiogram.types.menu_button.MenuButton(*, type: str, text: Optional[str] = None, web_app: Optional[WebAppInfo] = None, **extra_data: Any)[source]#

This object describes the bot’s menu button in a private chat. It should be one of

If a menu button other than aiogram.types.menu_button_default.MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.


type: str#

Type of the button

text: Optional[str]#

Optional. Text on the button

web_app: Optional[WebAppInfo]#

Optional. 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 aiogram.methods.answer_web_app_query.AnswerWebAppQuery.