File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3586,7 +3586,7 @@ async def get_updates(
3586
3586
self ,
3587
3587
offset : Optional [int ] = None ,
3588
3588
limit : Optional [int ] = None ,
3589
- timeout : Optional [float ] = None ,
3589
+ timeout : Optional [int ] = None ,
3590
3590
allowed_updates : Optional [Sequence [str ]] = None ,
3591
3591
* ,
3592
3592
read_timeout : float = 2 ,
Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ def run_polling(
673
673
Args:
674
674
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
675
675
Telegram in seconds. Default is ``0.0``.
676
- timeout (:obj:`float `, optional): Passed to
676
+ timeout (:obj:`int `, optional): Passed to
677
677
:paramref:`telegram.Bot.get_updates.timeout`. Default is ``10`` seconds.
678
678
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
679
679
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ async def get_updates(
531
531
self ,
532
532
offset : Optional [int ] = None ,
533
533
limit : Optional [int ] = None ,
534
- timeout : Optional [float ] = None ,
534
+ timeout : Optional [int ] = None ,
535
535
allowed_updates : Optional [Sequence [str ]] = None ,
536
536
* ,
537
537
read_timeout : float = 2 ,
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ async def start_polling(
202
202
Args:
203
203
poll_interval (:obj:`float`, optional): Time to wait between polling updates from
204
204
Telegram in seconds. Default is ``0.0``.
205
- timeout (:obj:`float `, optional): Passed to
205
+ timeout (:obj:`int `, optional): Passed to
206
206
:paramref:`telegram.Bot.get_updates.timeout`. Defaults to ``10`` seconds.
207
207
bootstrap_retries (:obj:`int`, optional): Whether the bootstrapping phase of the
208
208
:class:`telegram.ext.Updater` will retry on failures on the Telegram server.
You can’t perform that action at this time.
0 commit comments