Answer the question
In order to leave comments, you need to log in
What is executor in aiogram?
Hello everyone, why is there no explanation in the dock. What is executor in aiogram ? How am I supposed to understand what it is. So help me figure out what it is or discard the article
Answer the question
In order to leave comments, you need to log in
<div class="parent">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
.parent{
width: 50%;
margin: 0 auto;
height: 500px;
border: 1px solid;
text-align: center;
}
.child{
border: 1px inset tomato;
height: 150px;
width: 33.333%;
display:inline-block;
box-sizing: border-box;
}
.child:last-child{
float:right;
}
.child:first-child{
float:left;
}
Since aiogram has almost no documentation, you should have a good knowledge of python and async in order to understand the source code and examples.
AIogram can work in two modes - polling and webhooks. As I understand it, the executor allows the rest of the bot mechanisms to abstract from the mode used.
For example, start_polling() simply creates an asyncio reactor (loop) and starts the self.dispatcher.start_polling() task in it, and then waits for the completion signal. Well, it also pulls the on_startup and on_shutdown handlers. This can also be done manually if necessary.
webhooks uses aiohttp to implement a web server that will receive requests from telegram.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question