Class TdApi.MessageGiftedTon

Enclosing class:
TdApi

public static class TdApi.MessageGiftedTon extends TdApi.MessageContent
TON Grams were gifted to a user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    long
    The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing.
    long
    The received Gram amount, in the smallest units of the cryptocurrency.
    long
    The identifier of a user who received Grams; 0 if the gift is incoming.
    A sticker to be shown in the message; may be null if unknown.
    Identifier of the transaction for Gram credit; for receiver only.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TON Grams were gifted to a user.
    MessageGiftedTon(long gifterUserId, long receiverUserId, long gramAmount, String transactionId, TdApi.Sticker sticker)
    TON Grams were gifted to a user.
  • 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.Object

    toString

    Methods inherited from class java.lang.Object

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

    • gifterUserId

      public long gifterUserId
      The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing.
    • receiverUserId

      public long receiverUserId
      The identifier of a user who received Grams; 0 if the gift is incoming.
    • gramAmount

      public long gramAmount
      The received Gram amount, in the smallest units of the cryptocurrency.
    • transactionId

      public String transactionId
      Identifier of the transaction for Gram credit; for receiver only.
    • sticker

      public TdApi.Sticker sticker
      A sticker to be shown in the message; may be null if unknown.
    • CONSTRUCTOR

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

    • MessageGiftedTon

      public MessageGiftedTon()
      TON Grams were gifted to a user.
    • MessageGiftedTon

      public MessageGiftedTon(long gifterUserId, long receiverUserId, long gramAmount, String transactionId, TdApi.Sticker sticker)
      TON Grams were gifted to a user.
      Parameters:
      gifterUserId - The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing.
      receiverUserId - The identifier of a user who received Grams; 0 if the gift is incoming.
      gramAmount - The received Gram amount, in the smallest units of the cryptocurrency.
      transactionId - Identifier of the transaction for Gram credit; for receiver only.
      sticker - A sticker to be shown in the message; may be null if unknown.
  • 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