mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
Change annotation for constructor of Bot/BaseBot.
This commit is contained in:
parent
06c509cda8
commit
5812243d5d
1 changed files with 6 additions and 1 deletions
|
|
@ -24,13 +24,18 @@ class BaseBot:
|
|||
|
||||
def __init__(self, token: String,
|
||||
loop: Optional[Union[asyncio.BaseEventLoop, asyncio.AbstractEventLoop]] = None,
|
||||
connections_limit: Optional[Integer] = 10, proxy=None, proxy_auth=None, continue_retry=False):
|
||||
connections_limit: Optional[Integer] = 10,
|
||||
proxy: str = None, proxy_auth: Optional[aiohttp.BasicAuth] = None,
|
||||
continue_retry: Optional[bool] = False):
|
||||
"""
|
||||
Instructions how to get Bot token is found here: https://core.telegram.org/bots#3-how-do-i-create-a-bot
|
||||
|
||||
:param token: token from @BotFather
|
||||
:param loop: event loop
|
||||
:param connections_limit: connections limit for aiohttp.ClientSession
|
||||
:param proxy: HTTP proxy URL
|
||||
:param proxy_auth: :obj:`aiohttp.BasicAuth`
|
||||
:param continue_retry: automatic retry sent request when flood control exceeded
|
||||
"""
|
||||
|
||||
self.__token = token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue