stopPoll - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / stopPoll

stopPoll

suspend fun TelegramFlow.stopPoll(chatId: Long, messageId: Long, replyMarkup: ReplyMarkup?): Unit

Suspend function, which stops a poll. A poll in a message can be stopped when the message has canBeEdited flag set.

Parameters

chatId - Identifier of the chat to which the poll belongs.

messageId - Identifier of the message containing the poll.

replyMarkup - The new message reply markup; for bots only.