stopPoll
End an active poll sent by your bot and retrieve the final results. Provide chat ID and message ID to stop it.
Instructions
Stop a poll which was sent by the bot. Returns the stopped Poll 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": "stopPoll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername). | |
| message_id | Yes | Identifier of the original message with the poll. | |
| reply_markup | No | A JSON-serialized object for a new message inline keyboard. | |
| business_connection_id | No | Unique identifier of the business connection on behalf of which the message to be edited was sent. |