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 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.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR