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 subscription plan that will be applied to the users joining the chat via the link. Subscription period must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used.