Class TdApi.EditUserStarSubscription

Enclosing class:
TdApi

public static class TdApi.EditUserStarSubscription extends TdApi.Function<TdApi.Ok>
Cancels or re-enables Telegram Star subscription for a user; for bots only.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    Pass true to cancel the subscription; pass false to allow the user to enable it.
    Telegram payment identifier of the subscription.
    long
    User identifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.
    EditUserStarSubscription(long userId, String telegramPaymentChargeId, boolean isCanceled)
    Creates a function, which cancels or re-enables Telegram Star subscription for a user; 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.Function

    toString

    Methods inherited from class java.lang.Object

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

    • userId

      public long userId
      User identifier.
    • telegramPaymentChargeId

      public String telegramPaymentChargeId
      Telegram payment identifier of the subscription.
    • isCanceled

      public boolean isCanceled
      Pass true to cancel the subscription; pass false to allow the user to enable it.
    • CONSTRUCTOR

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

    • EditUserStarSubscription

      public EditUserStarSubscription()
      Default constructor for a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.

      Returns Ok

    • EditUserStarSubscription

      public EditUserStarSubscription(long userId, String telegramPaymentChargeId, boolean isCanceled)
      Creates a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.

      Returns Ok

      Parameters:
      userId - User identifier.
      telegramPaymentChargeId - Telegram payment identifier of the subscription.
      isCanceled - Pass true to cancel the subscription; pass false to allow the user to enable it.
  • 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