Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 655 Bytes

MenuButtonWebApp.md

File metadata and controls

22 lines (16 loc) · 655 Bytes

TelegramBotOpenapi::MenuButtonWebApp

Properties

Name Type Description Notes
type String Type of the button, must be web_app
text String Text on the button
web_app 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.

Example

require 'telegram-bot-openapi'

instance = TelegramBotOpenapi::MenuButtonWebApp.new(
  type: null,
  text: null,
  web_app: null
)