Class TdApi.SetPinnedGifts

Enclosing class:
TdApi

public static class TdApi.SetPinnedGifts extends TdApi.Function<TdApi.Ok>
Changes the list of pinned gifts on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Identifier of the user or the channel chat that received the gifts.
    New list of pinned gifts.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which changes the list of pinned gifts on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.
    SetPinnedGifts(TdApi.MessageSender ownerId, String[] receivedGiftIds)
    Creates a function, which changes the list of pinned gifts on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.
  • 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

    • ownerId

      public TdApi.MessageSender ownerId
      Identifier of the user or the channel chat that received the gifts.
    • receivedGiftIds

      public String[] receivedGiftIds
      New list of pinned gifts. All gifts must be upgraded and saved on the profile page first. There can be up to getOption("pinned_gift_count_max") pinned gifts.
    • CONSTRUCTOR

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

    • SetPinnedGifts

      public SetPinnedGifts()
      Default constructor for a function, which changes the list of pinned gifts on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.

      Returns Ok

    • SetPinnedGifts

      public SetPinnedGifts(TdApi.MessageSender ownerId, String[] receivedGiftIds)
      Creates a function, which changes the list of pinned gifts on the current user's or the channel's profile page; requires canPostMessages administrator right in the channel chat.

      Returns Ok

      Parameters:
      ownerId - Identifier of the user or the channel chat that received the gifts.
      receivedGiftIds - New list of pinned gifts. All gifts must be upgraded and saved on the profile page first. There can be up to getOption("pinned_gift_count_max") pinned gifts.
  • 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