Interface CreateChatSubscriptionInviteLink

Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat. Request type for Tdjson#createChatSubscriptionInviteLink.

interface CreateChatSubscriptionInviteLink {
    @type: "createChatSubscriptionInviteLink";
    chat_id: number;
    name: string;
    subscription_pricing: StarSubscriptionPricing;
}

Properties

@type: "createChatSubscriptionInviteLink"
chat_id: number

Chat identifier.

name: string

Invite link name; 0-32 characters.

subscription_pricing: StarSubscriptionPricing

Information about the subscription plan that will be applied to the users joining the chat via the link. The subscription period must be 2592000 in the production environment, and 60 or 300 if the Telegram test environment is used.