MenuButton

@Serializable
sealed class MenuButton

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

  • MenuButtonCommands

  • MenuButtonWebApp

  • MenuButtonDefault If a menu button other than 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.

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "commands")
class Commands : MenuButton
Link copied to clipboard
@Serializable
@SerialName(value = "default")
class Default : MenuButton
Link copied to clipboard
@Serializable
@SerialName(value = "web_app")
data class WebApp(val text: String, val webApp: WebAppInfo) : MenuButton

Properties

Link copied to clipboard
open val type: String