From 5812243d5dab057aea2d4dffe57ccb5dd3a26cb5 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 11 Aug 2017 06:05:24 +0300 Subject: [PATCH] Change annotation for constructor of Bot/BaseBot. --- aiogram/bot/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aiogram/bot/base.py b/aiogram/bot/base.py index 5ece448a..a37e7243 100644 --- a/aiogram/bot/base.py +++ b/aiogram/bot/base.py @@ -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