stopPoll

Stop a poll.

PARAMETERS
chatId: ID

The chat that includes the poll.

messageId: number

The idenfifier of the poll’s message.

replyMarkup?: ReplyMarkup
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, { replyMarkup });