diff --git a/telegram/_bot.py b/telegram/_bot.py index 9f2cd246723..a6b46600269 100644 --- a/telegram/_bot.py +++ b/telegram/_bot.py @@ -3586,7 +3586,7 @@ async def get_updates( self, offset: Optional[int] = None, limit: Optional[int] = None, - timeout: Optional[float] = None, + timeout: Optional[int] = None, allowed_updates: Optional[Sequence[str]] = None, *, read_timeout: float = 2, diff --git a/telegram/ext/_application.py b/telegram/ext/_application.py index af292167251..7452e4c9c52 100644 --- a/telegram/ext/_application.py +++ b/telegram/ext/_application.py @@ -673,7 +673,7 @@ def run_polling( Args: poll_interval (:obj:`float`, optional): Time to wait between polling updates from Telegram in seconds. Default is ``0.0``. - timeout (:obj:`float`, optional): Passed to + timeout (:obj:`int`, optional): Passed to :paramref:`telegram.Bot.get_updates.timeout`. Default is ``10`` seconds. bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the :class:`telegram.ext.Updater` will retry on failures on the Telegram server. diff --git a/telegram/ext/_extbot.py b/telegram/ext/_extbot.py index 704957fcdbd..c0f37efd9a5 100644 --- a/telegram/ext/_extbot.py +++ b/telegram/ext/_extbot.py @@ -531,7 +531,7 @@ async def get_updates( self, offset: Optional[int] = None, limit: Optional[int] = None, - timeout: Optional[float] = None, + timeout: Optional[int] = None, allowed_updates: Optional[Sequence[str]] = None, *, read_timeout: float = 2, diff --git a/telegram/ext/_updater.py b/telegram/ext/_updater.py index 993091543c9..231500b1542 100644 --- a/telegram/ext/_updater.py +++ b/telegram/ext/_updater.py @@ -202,7 +202,7 @@ async def start_polling( Args: poll_interval (:obj:`float`, optional): Time to wait between polling updates from Telegram in seconds. Default is ``0.0``. - timeout (:obj:`float`, optional): Passed to + timeout (:obj:`int`, optional): Passed to :paramref:`telegram.Bot.get_updates.timeout`. Defaults to ``10`` seconds. bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the :class:`telegram.ext.Updater` will retry on failures on the Telegram server.