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:
parent
490168f3f6
commit
651db29cb2
@ -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`
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user