haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.OpenWebApp

Synopsis

Documentation

data OpenWebApp Source #

Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once. Returns WebAppInfo

Constructors

OpenWebApp 

Fields

  • chat_id :: Maybe Int

    Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats

  • bot_user_id :: Maybe Int

    Identifier of the bot, providing the Web App

  • url :: Maybe Text

    The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise

  • theme :: Maybe ThemeParameters

    Preferred Web App theme; pass null to use the default theme

  • application_name :: Maybe Text

    Short name of the current application; 0-64 English letters, digits, and underscores

  • message_thread_id :: Maybe Int

    If not 0, the message thread identifier in which the message will be sent

  • reply_to :: Maybe InputMessageReplyTo

    Information about the message or story to be replied in the message sent by the Web App; pass null if none

Instances

Instances details
ToJSON OpenWebApp Source # 
Instance details

Defined in TD.Query.OpenWebApp

Show OpenWebApp Source # 
Instance details

Defined in TD.Query.OpenWebApp

Eq OpenWebApp Source # 
Instance details

Defined in TD.Query.OpenWebApp

ShortShow OpenWebApp Source # 
Instance details

Defined in TD.Query.OpenWebApp