Module tdlight.api

Class TdApi.MessageGiftedPremium

Enclosing class:
TdApi

public static final class TdApi.MessageGiftedPremium extends TdApi.MessageContent
Telegram Premium was gifted to the user.
  • Field Details

    • currency

      public String currency
      Currency for the paid amount.
    • amount

      public long amount
      The paid amount, in the smallest units of the currency.
    • monthCount

      public int monthCount
      Number of month the Telegram Premium subscription will be active.
    • sticker

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

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • MessageGiftedPremium

      public MessageGiftedPremium()
      Telegram Premium was gifted to the user.
    • MessageGiftedPremium

      public MessageGiftedPremium(String currency, long amount, int monthCount, TdApi.Sticker sticker)
      Telegram Premium was gifted to the user.
      Parameters:
      currency - String Currency for the paid amount.
      amount - long The paid amount, in the smallest units of the currency.
      monthCount - int Number of month the Telegram Premium subscription will be active.
      sticker - Sticker A sticker to be shown in the message; may be null if unknown.
    • MessageGiftedPremium

      public MessageGiftedPremium(DataInput input) throws IOException
      Telegram Premium was gifted to the user.
      Throws:
      IOException
  • Method Details