unpinChatMessage
Unpin a message in a chat.
Request
POST /:token/unpinchatmessage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| chat_id | Integer/String | Yes | Unique identifier for the target chat or username |
| message_id | Integer | No | Identifier of the message to unpin. If not specified, the most recent pinned message will be unpinned |
Response
Returns Boolean true on success.
json
{
"ok": true,
"result": true
}Error Codes
| Code | Description |
|---|---|
| 400 | Bad request parameters |
| 401 | Invalid token |
| 403 | Bot does not have permission to perform this action |
| 404 | Message does not exist or is not pinned |
