telegramsjs
    Preparing search index...

    Class MenuButton

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • data: MenuButton

        Data about the interface describes the bot's menu button in a private chat

      Returns MenuButton

    Properties

    text?: string

    The text on the button

    webApp?: { url: string }

    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. Alternatively, a t.me link to a Web App 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

    Methods

    • Returns this is MenuButton & { text?: undefined; webApp?: undefined }