haskell-tdlib-2.1.11.0: Binding to the Telegram Database Library
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. If the bot is restricted for the current user, then show an error instead of calling the method

  • url :: Maybe Text

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

  • topic_id :: Maybe MessageTopic

    Topic in which the message will be sent; pass null if none

  • 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

  • parameters :: Maybe WebAppOpenParameters

    Parameters to use to open the Web App

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