Interface UpdateUserSubscription

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

interface UpdateUserSubscription {
    @type: "updateUserSubscription";
    is_canceled?: boolean;
    is_payment_failed?: boolean;
    is_restored?: boolean;
    payload: string;
    user_id: number;
}

Properties

@type: "updateUserSubscription"
is_canceled?: boolean

True, if the subscription was canceled.

is_payment_failed?: boolean

True, if the payment for the subscription has failed.

is_restored?: boolean

True, if the subscription was restored.

payload: string

Bot-specified subscription invoice payload.

user_id: number

Identifier of the user.