{
  "name": "sendGift",
  "anchor": "sendgift",
  "description": [
    "Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns True on success."
  ],
  "table": {
    "headers": [
      "Parameter",
      "Type",
      "Required",
      "Description"
    ],
    "rows": [
      {
        "parameter": "user_id",
        "type": "Integer",
        "required": "Optional",
        "description": "Required if chat_id is not specified. Unique identifier of the target user who will receive the gift."
      },
      {
        "parameter": "chat_id",
        "type": "Integer or String",
        "required": "Optional",
        "description": "Required if user_id is not specified. Unique identifier for the chat or username of the channel (in the format @channelusername ) that will receive the gift."
      },
      {
        "parameter": "gift_id",
        "type": "String",
        "required": "Yes",
        "description": "Identifier of the gift; limited gifts can't be sent to channel chats"
      },
      {
        "parameter": "pay_for_upgrade",
        "type": "Boolean",
        "required": "Optional",
        "description": "Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver"
      },
      {
        "parameter": "text",
        "type": "String",
        "required": "Optional",
        "description": "Text that will be shown along with the gift; 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": []
}