{ "meta": {}, "group": { "title": "Available methods", "anchor": "available-methods" }, "object": { "anchor": "createchatsubscriptioninvitelink", "name": "createChatSubscriptionInviteLink", "description": "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.", "html_description": "

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.

", "rst_description": "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 :class:`aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink` or revoked using the method :class:`aiogram.methods.revoke_chat_invite_link.RevokeChatInviteLink`. Returns the new invite link as a :class:`aiogram.types.chat_invite_link.ChatInviteLink` object.", "annotations": [ { "type": "Integer or String", "required": true, "description": "Unique identifier for the target channel chat or username of the target channel (in the format @channelusername)", "html_description": "Unique identifier for the target channel chat or username of the target channel (in the format @channelusername)", "rst_description": "Unique identifier for the target channel chat or username of the target channel (in the format :code:`@channelusername`)\n", "name": "chat_id" }, { "type": "String", "required": false, "description": "Invite link name; 0-32 characters", "html_description": "Invite link name; 0-32 characters", "rst_description": "Invite link name; 0-32 characters\n", "name": "name" }, { "type": "Integer", "required": true, "description": "The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).", "html_description": "The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).", "rst_description": "The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).\n", "name": "subscription_period" }, { "type": "Integer", "required": true, "description": "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", "html_description": "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", "rst_description": "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\n", "name": "subscription_price" } ], "category": "methods" } }