declineSuggestedPost
Declines a suggested post in a direct messages chat, requiring the bot's can_manage_direct_messages admin right. Use it to reject unwanted suggested posts and return True on success.
Instructions
Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns True on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"message_id": "<message_id>"
},
"name": "declineSuggestedPost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target direct messages chat | |
| comment | No | Comment for the creator of the suggested post; 0-128 characters | |
| message_id | Yes | Identifier of a suggested post message to decline |