create_chat_subscription_invite_link


Description:

public async ChatInviteLink create_chat_subscription_invite_link (int64 chat_id, string name, StarSubscriptionPricing subscription_pricing) throws TDLibError

Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat

Parameters:

chat_id

Chat identifier

name

Invite link name; 0-32 characters

subscription_pricing

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