Class TdApi.ReorderBotMediaPreviews

Enclosing class:
TdApi

public static class TdApi.ReorderBotMediaPreviews extends TdApi.Function<TdApi.Ok>
Changes order of media previews in the list of media previews of a bot.

Returns Ok

  • 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
      Language code of the media previews to reorder.
    • fileIds

      public int[] fileIds
      File identifiers of the media in the new order.
    • CONSTRUCTOR

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

    • ReorderBotMediaPreviews

      public ReorderBotMediaPreviews()
      Default constructor for a function, which changes order of media previews in the list of media previews of a bot.

      Returns Ok

    • ReorderBotMediaPreviews

      public ReorderBotMediaPreviews(long botUserId, String languageCode, int[] fileIds)
      Creates a function, which changes order of media previews in the list of media previews of a bot.

      Returns Ok

      Parameters:
      botUserId - Identifier of the target bot. The bot must be owned and must have the main Web App.
      languageCode - Language code of the media previews to reorder.
      fileIds - File identifiers of the media in the new order.
  • 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.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR