{
  "name": "close",
  "anchor": "close",
  "description": [
    "Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters."
  ],
  "table": {
    "headers": [
      "Parameter",
      "Type",
      "Required",
      "Description"
    ],
    "rows": [
      {
        "parameter": "business_connection_id",
        "type": "String",
        "required": "Optional",
        "description": "Unique identifier of the business connection on behalf of which the message will be sent"
      },
      {
        "parameter": "chat_id",
        "type": "Integer or String",
        "required": "Yes",
        "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername )"
      },
      {
        "parameter": "message_thread_id",
        "type": "Integer",
        "required": "Optional",
        "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only"
      },
      {
        "parameter": "direct_messages_topic_id",
        "type": "Integer",
        "required": "Optional",
        "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat"
      },
      {
        "parameter": "text",
        "type": "String",
        "required": "Yes",
        "description": "Text of the message to be sent, 1-4096 characters after entities parsing"
      },
      {
        "parameter": "parse_mode",
        "type": "String",
        "required": "Optional",
        "description": "Mode for parsing entities in the message text. See formatting options for more details."
      },
      {
        "parameter": "entities",
        "type": "Array of MessageEntity",
        "required": "Optional",
        "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode"
      },
      {
        "parameter": "link_preview_options",
        "type": "LinkPreviewOptions",
        "required": "Optional",
        "description": "Link preview generation options for the message"
      },
      {
        "parameter": "disable_notification",
        "type": "Boolean",
        "required": "Optional",
        "description": "Sends the message silently . Users will receive a notification with no sound."
      },
      {
        "parameter": "protect_content",
        "type": "Boolean",
        "required": "Optional",
        "description": "Protects the contents of the sent message from forwarding and saving"
      },
      {
        "parameter": "allow_paid_broadcast",
        "type": "Boolean",
        "required": "Optional",
        "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance"
      },
      {
        "parameter": "message_effect_id",
        "type": "String",
        "required": "Optional",
        "description": "Unique identifier of the message effect to be added to the message; for private chats only"
      },
      {
        "parameter": "suggested_post_parameters",
        "type": "SuggestedPostParameters",
        "required": "Optional",
        "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined."
      },
      {
        "parameter": "reply_parameters",
        "type": "ReplyParameters",
        "required": "Optional",
        "description": "Description of the message to reply to"
      },
      {
        "parameter": "reply_markup",
        "type": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
        "required": "Optional",
        "description": "Additional interface options. A JSON-serialized object for an inline keyboard , custom reply keyboard , instructions to remove a reply keyboard or to force a reply from the user"
      }
    ]
  },
  "notes": []
}