stopPoll

suspend fun TelegramBotApiClient.stopPoll(requestBody: StopPollRequest): TelegramResponse<Poll>

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.

suspend fun TelegramBotApiClient.stopPoll(chatId: Int, messageId: Int, replyMarkup: InlineKeyboardMarkup? = null): TelegramResponse<Poll>

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

messageId

Identifier of the original message with the poll

replyMarkup

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