Skip to content

stopPoll

Returns Poll

Use this method to stop a poll which was sent by the bot.

Required: chat_id, message_id · Optional: 2 parameters

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("stop_poll", {
chat_id: "YOUR_CHAT_ID",
message_id: 0
})

Parameters

chat_id number | string Required
Unique identifier for the target chat or username of the target channel (in the format @channelusername).

message_id number Required
Identifier of the original message with the poll.

business_connection_id string
Unique identifier of the business connection on behalf of which the message to be edited was sent.

reply_markup InlineKeyboardMarkup
A JSON-serialized object for a new message inline keyboard.

stopMessageLiveLocation