stopPoll

inline fun stopPoll(messageId: Long): StopPollAction

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

Api reference

Parameters

businessConnectionId

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

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.