Skip to content

UpdateUserSubscription

Update · TDLib 1.8.67 · d1085f9c

Subscription of a user to the bot was changed; for bots only

UpdateUserSubscription(
  user_id: int53,
  payload: string,
  is_canceled: Bool,
  is_restored: Bool,
  is_payment_failed: Bool
) → Update

user_id

int53

Identifier of the user

payload

string

Bot-specified subscription invoice payload

is_canceled

Bool

True, if the subscription was canceled

is_restored

Bool

True, if the subscription was restored

is_payment_failed

Bool

True, if the payment for the subscription has failed