BaseBot¶
This class is base of bot. In BaseBot implemented all available methods of Telegram Bot API.
-
class
aiogram.bot.base.BaseBot(token: String, loop: typing.Union[asyncio.events.AbstractEventLoop, NoneType] = None, connections_limit: typing.Union[~Integer, NoneType] = 10, proxy: str = None, proxy_auth: typing.Union[aiohttp.helpers.BasicAuth, NoneType] = None, continue_retry: typing.Union[bool, NoneType] = False)[исходный код]¶ Base class for bot. It’s raw bot.
Instructions how to get Bot token is found here: https://core.telegram.org/bots#3-how-do-i-create-a-bot
Параметры: - token – token from @BotFather
- loop – event loop
- connections_limit – connections limit for aiohttp.ClientSession
- proxy – HTTP proxy URL
- proxy_auth –
aiohttp.BasicAuth - continue_retry – automatic retry sent request when flood control exceeded