Class TdApi.PlaceGiftAuctionBid

Enclosing class:
TdApi

public static class TdApi.PlaceGiftAuctionBid extends TdApi.Function<TdApi.Ok>
Places a bid on an auction gift.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the gift to place the bid on.
    boolean
    Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them.
    long
    The number of Telegram Stars to place in the bid.
    Text to show along with the gift; 0-getOption("gift_text_length_max") characters.
    long
    Identifier of the user that will receive the gift.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which places a bid on an auction gift.
    PlaceGiftAuctionBid(long giftId, long starCount, long userId, TdApi.FormattedText text, boolean isPrivate)
    Creates a function, which places a bid on an auction gift.
  • 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

    • giftId

      public long giftId
      Identifier of the gift to place the bid on.
    • starCount

      public long starCount
      The number of Telegram Stars to place in the bid.
    • userId

      public long userId
      Identifier of the user that will receive the gift.
    • text

      public TdApi.FormattedText text
      Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. Must be empty if the receiver enabled paid messages.
    • isPrivate

      public boolean isPrivate
      Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them.
    • CONSTRUCTOR

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

    • PlaceGiftAuctionBid

      public PlaceGiftAuctionBid()
      Default constructor for a function, which places a bid on an auction gift.

      Returns Ok

    • PlaceGiftAuctionBid

      public PlaceGiftAuctionBid(long giftId, long starCount, long userId, TdApi.FormattedText text, boolean isPrivate)
      Creates a function, which places a bid on an auction gift.

      Returns Ok

      Parameters:
      giftId - Identifier of the gift to place the bid on.
      starCount - The number of Telegram Stars to place in the bid.
      userId - Identifier of the user that will receive the gift.
      text - Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. Must be empty if the receiver enabled paid messages.
      isPrivate - Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them.
  • 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