Poll.stop()

async Poll.stop()

Bound method stop of Poll.

Use as a shortcut for:

client.stop_poll(
    chat_id=message.chat.id,
    message_id=message.id,
)
Parameters:
  • reply_markup (InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object.

  • business_connection_id (str, optional) – Unique identifier of the business connection.

Example

message.poll.stop()
Returns:

Poll – On success, the stopped poll with the final results is returned.

Raises:

RPCError – In case of a Telegram RPC error.