Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.
||Unique identifier for the target chat or username of the target channel (in the format @channelusername)|
||Identifier of the original message with the poll|
||Optional. A JSON-serialized object for a new message inline keyboard.|
Description: On success, the stopped Poll with the final results is returned.
As bot method¶
result: Poll = await bot.stop_poll(...)
Method as object¶
from aiogram.methods import StopPoll
from aiogram.api.methods import StopPoll
from aiogram.api.methods.stop_poll import StopPoll
In handlers with current bot¶
result: Poll = await StopPoll(...)
With specific bot¶
result: Poll = await bot(StopPoll(...))
As reply into Webhook in handler¶