1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix typehints for stop_poll reply markup

This commit is contained in:
Cub11k 2023-01-03 23:45:59 +02:00
parent 490168f3f6
commit 651db29cb2
2 changed files with 4 additions and 4 deletions

View File

@ -4197,7 +4197,7 @@ class TeleBot:
def stop_poll(
self, chat_id: Union[int, str], message_id: int,
reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> types.Poll:
reply_markup: Optional[types.InlineKeyboardMarkup]=None) -> types.Poll:
"""
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
@ -4210,7 +4210,7 @@ class TeleBot:
:type message_id: :obj:`int`
:param reply_markup: A JSON-serialized object for a new message markup.
:type reply_markup: :obj:`InlineKeyboardMarkup` | :obj:`ReplyKeyboardMarkup` | :obj:`ReplyKeyboardRemove` | :obj:`ForceReply`
:type reply_markup: :obj:`InlineKeyboardMarkup`
:return: On success, the stopped Poll is returned.
:rtype: :obj:`types.Poll`

View File

@ -5061,7 +5061,7 @@ class AsyncTeleBot:
async def stop_poll(
self, chat_id: Union[int, str], message_id: int,
reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> types.Poll:
reply_markup: Optional[types.InlineKeyboardMarkup]=None) -> types.Poll:
"""
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
@ -5074,7 +5074,7 @@ class AsyncTeleBot:
:type message_id: :obj:`int`
:param reply_markup: A JSON-serialized object for a new message markup.
:type reply_markup: :obj:`InlineKeyboardMarkup` | :obj:`ReplyKeyboardMarkup` | :obj:`ReplyKeyboardRemove` | :obj:`ForceReply`
:type reply_markup: :obj:`InlineKeyboardMarkup`
:return: On success, the stopped Poll is returned.
:rtype: :obj:`types.Poll`