Module tdlight.api

Class TdApi.OpenWebApp

Enclosing class:
TdApi

public static final class TdApi.OpenWebApp extends TdApi.Function<TdApi.WebAppInfo>
Informs TDLib that a web app is being opened from 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the bot, providing the web app.
    long
    Identifier of the chat in which the web app is opened.
    static final int
     
    long
    Identifier of the replied message for the message sent by the web app; 0 if none.
    Preferred web app theme; pass null to use the default theme.
    The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Informs TDLib that a web app is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
    OpenWebApp(long chatId, long botUserId, String url, TdApi.ThemeParameters theme, long replyToMessageId)
    Informs TDLib that a web app is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
    Informs TDLib that a web app is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    void
     

    Methods inherited from class it.tdlight.jni.TdApi.Function

    toString

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat in which the web app is opened. Web apps can be opened only in private chats for now.
    • botUserId

      public long botUserId
      Identifier of the bot, providing the web app.
    • url

      public String url
      The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.
    • theme

      public TdApi.ThemeParameters theme
      Preferred web app theme; pass null to use the default theme.
    • replyToMessageId

      public long replyToMessageId
      Identifier of the replied message for the message sent by the web app; 0 if none.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • OpenWebApp

      public OpenWebApp()
      Informs TDLib that a web app is being opened from 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
    • OpenWebApp

      public OpenWebApp(long chatId, long botUserId, String url, TdApi.ThemeParameters theme, long replyToMessageId)
      Informs TDLib that a web app is being opened from 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
      Parameters:
      chatId - long Identifier of the chat in which the web app is opened. Web apps can be opened only in private chats for now.
      botUserId - long Identifier of the bot, providing the web app.
      url - String The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.
      theme - ThemeParameters Preferred web app theme; pass null to use the default theme.
      replyToMessageId - long Identifier of the replied message for the message sent by the web app; 0 if none.
    • OpenWebApp

      public OpenWebApp(DataInput input) throws IOException
      Informs TDLib that a web app is being opened from 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
      Throws:
      IOException
  • Method Details