Class TdApi.UpdateUserSubscription

Enclosing class:
TdApi

public static class TdApi.UpdateUserSubscription extends TdApi.Update
Subscription of a user to the bot was changed; for bots only.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    True, if the subscription was canceled.
    boolean
    True, if the payment for the subscription has failed.
    boolean
    True, if the subscription was restored.
    Bot-specified subscription invoice payload.
    long
    Identifier of the user.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Subscription of a user to the bot was changed; for bots only.
    UpdateUserSubscription(long userId, String payload, boolean isCanceled, boolean isRestored, boolean isPaymentFailed)
    Subscription of a user to the bot was changed; for bots only.
  • 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

    • userId

      public long userId
      Identifier of the user.
    • payload

      public String payload
      Bot-specified subscription invoice payload.
    • isCanceled

      public boolean isCanceled
      True, if the subscription was canceled.
    • isRestored

      public boolean isRestored
      True, if the subscription was restored.
    • isPaymentFailed

      public boolean isPaymentFailed
      True, if the payment for the subscription has failed.
    • CONSTRUCTOR

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

    • UpdateUserSubscription

      public UpdateUserSubscription()
      Subscription of a user to the bot was changed; for bots only.
    • UpdateUserSubscription

      public UpdateUserSubscription(long userId, String payload, boolean isCanceled, boolean isRestored, boolean isPaymentFailed)
      Subscription of a user to the bot was changed; for bots only.
      Parameters:
      userId - Identifier of the user.
      payload - Bot-specified subscription invoice payload.
      isCanceled - True, if the subscription was canceled.
      isRestored - True, if the subscription was restored.
      isPaymentFailed - True, if the payment for the subscription has failed.
  • 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