stop_poll
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
Parameters
chat_id
(int
orstr
): Unique identifier for the target chat or username of the target channelmessage_id
(int
): Identifier of the original message with the pollbusiness_connection_id
(str
) (optional
): Identifier of the business connection to send the message throughreply_markup
(InlineKeyboardMarkup) (optional
): A JSON-serialized object for a new message markup.
Returns
Poll
Examples
- Required Parameters
await bot.stop_poll(
chat_id=your_chat_id_here,
message_id=your_message_id_here
)
- All Parameters
await bot.stop_poll(
chat_id=your_chat_id_here,
message_id=your_message_id_here,
business_connection_id=your_business_connection_id_here,
reply_markup=your_reply_markup_here
)