Class TdApi.GetBotMediaPreviewInfo

Enclosing class:
TdApi

public static class TdApi.GetBotMediaPreviewInfo extends TdApi.Function<TdApi.BotMediaPreviewInfo>
Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.

Returns BotMediaPreviewInfo

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the target bot.
    static final int
    Identifier uniquely determining type of the object.
    A two-letter ISO 639-1 language code for which to get previews.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.
    GetBotMediaPreviewInfo(long botUserId, String languageCode)
    Creates a function, which returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

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

    • botUserId

      public long botUserId
      Identifier of the target bot. The bot must be owned and must have the main Web App.
    • languageCode

      public String languageCode
      A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetBotMediaPreviewInfo

      public GetBotMediaPreviewInfo()
      Default constructor for a function, which returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.

      Returns BotMediaPreviewInfo

    • GetBotMediaPreviewInfo

      public GetBotMediaPreviewInfo(long botUserId, String languageCode)
      Creates a function, which returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.

      Returns BotMediaPreviewInfo

      Parameters:
      botUserId - Identifier of the target bot. The bot must be owned and must have the main Web App.
      languageCode - A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR