stopPoll method

Future<Poll> stopPoll(
  1. ChatID chatId,
  2. int messageId, {
  3. ReplyMarkup? replyMarkup,
})
inherited

Use this method to stop a poll which was sent by the bot.

On success, the stopped Poll is returned.

Implementation

Future<Poll> stopPoll(
  ChatID chatId,
  int messageId, {
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'stopPoll', {
    'chat_id': chatId,
    'message_id': messageId,
    'reply_markup': replyMarkup,
  });
}