peyk.platforms.telegram.methods.stop_poll¶
- async peyk.platforms.telegram.methods.stop_poll(self, chat_id: int | str, message_id: int, *, reply_markup: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply | Mapping[str, object] | None = None) Poll[source]¶
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
- Parameters:
chat_id – Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
message_id – Identifier of the original message with the poll
reply_markup – A JSON-serialized object for a new message inline keyboard
- Returns:
Result returned by Telegram on successful execution.
- Return type: