{
  "name": "giftPremiumSubscription",
  "anchor": "giftpremiumsubscription",
  "description": [
    "Gifts a Telegram Premium subscription to the given user. Returns True on success."
  ],
  "table": {
    "headers": [
      "Parameter",
      "Type",
      "Required",
      "Description"
    ],
    "rows": [
      {
        "parameter": "user_id",
        "type": "Integer",
        "required": "Yes",
        "description": "Unique identifier of the target user who will receive a Telegram Premium subscription"
      },
      {
        "parameter": "month_count",
        "type": "Integer",
        "required": "Yes",
        "description": "Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12"
      },
      {
        "parameter": "star_count",
        "type": "Integer",
        "required": "Yes",
        "description": "Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months"
      },
      {
        "parameter": "text",
        "type": "String",
        "required": "Optional",
        "description": "Text that will be shown along with the service message about the subscription; 0-128 characters"
      },
      {
        "parameter": "text_parse_mode",
        "type": "String",
        "required": "Optional",
        "description": "Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored."
      },
      {
        "parameter": "text_entities",
        "type": "Array of MessageEntity",
        "required": "Optional",
        "description": "A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode . Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored."
      }
    ]
  },
  "notes": []
}