{
  "name": "createChatSubscriptionInviteLink",
  "anchor": "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."
  ],
  "table": {
    "headers": [
      "Parameter",
      "Type",
      "Required",
      "Description"
    ],
    "rows": [
      {
        "parameter": "chat_id",
        "type": "Integer or String",
        "required": "Yes",
        "description": "Unique identifier for the target channel chat or username of the target channel (in the format @channelusername )"
      },
      {
        "parameter": "name",
        "type": "String",
        "required": "Optional",
        "description": "Invite link name; 0-32 characters"
      },
      {
        "parameter": "subscription_period",
        "type": "Integer",
        "required": "Yes",
        "description": "The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days)."
      },
      {
        "parameter": "subscription_price",
        "type": "Integer",
        "required": "Yes",
        "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"
      }
    ]
  },
  "notes": []
}