Telegram Bot API

Use this method to create a subscription invite link for a channel chat. The bot must have the can_invite_users administrator rights. The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method revokeChatInviteLink. Returns the new invite link as a ChatInviteLink object.

post/createChatSubscriptionInviteLink

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/createChatSubscriptionInviteLink
  • Auth: none declared

Request body

namestring

Invite link name; 0-32 characters

subscription_periodinteger required

The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).

subscription_priceinteger required

The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-10000

Response

Telegram API response

oktrue required

Changes