stopPoll

Stop a poll.

Parameters

chatId: ID

The chat that includes the poll.

messageId: number

The idenfifier of the poll’s message.

businessConnectionId?: string

The identifier of a business connection ID to perform the action on. Bot-only.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

Result

The new state of the poll.

Syntax

// Required parameters only.
await client.stopPoll(chatId, messageId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.stopPoll(chatId, messageId, { businessConnectionId, replyMarkup });