Class TdApi.MessageGiftedTon

Enclosing class:
TdApi

public static class TdApi.MessageGiftedTon extends TdApi.MessageContent
Toncoins were gifted to a user.
  • Field Details

    • gifterUserId

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

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

      public long tonAmount
      The received Toncoin amount, in the smallest units of the cryptocurrency.
    • transactionId

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

      @Nullable 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()
      Toncoins were gifted to a user.
    • MessageGiftedTon

      public MessageGiftedTon(long gifterUserId, long receiverUserId, long tonAmount, String transactionId, TdApi.Sticker sticker)
      Toncoins were gifted to a user.
      Parameters:
      gifterUserId - The identifier of a user who gifted Toncoins; 0 if the gift was anonymous or is outgoing.
      receiverUserId - The identifier of a user who received Toncoins; 0 if the gift is incoming.
      tonAmount - The received Toncoin amount, in the smallest units of the cryptocurrency.
      transactionId - Identifier of the transaction for Toncoin 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.MessageContent
      Returns:
      this.CONSTRUCTOR