đ§ 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
)