{
  "name": "pinChatMessage",
  "anchor": "pinchatmessage",
  "description": [
    "Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns True on success."
  ],
  "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 pinned"
      },
      {
        "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_id",
        "type": "Integer",
        "required": "Yes",
        "description": "Identifier of a message to pin"
      },
      {
        "parameter": "disable_notification",
        "type": "Boolean",
        "required": "Optional",
        "description": "Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats."
      }
    ]
  },
  "notes": []
}