Bot object¶
That is extended (and recommended for usage) bot class based on BaseBot class.
You can use instance of that bot in aiogram.dispatcher.Dispatcher
-
class
aiogram.bot.bot.Bot(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)[исходный код]¶ Main bot class. Based on
aiogram.bot.BaseBotand in this module is realized data serialization.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