Answer the question
In order to leave comments, you need to log in
What are the differences between libraries for telegram bot?
What are the differences, for example, between PyTelegramBotApi and Aiogram? In what ways can they manifest, i.e. in which cases? What other good libraries are out there, and what features do they already have?
Answer the question
In order to leave comments, you need to log in
The main difference: the first is synchronous, the second is asynchronous. I will not talk about the advantages of the asynchronous approach, but it is more difficult, especially for inexperienced programmers.
In general, all libraries are similar, they have the same method names, data structures are similar. Not surprising, since they all implement the same API. Knowing one, you can easily learn others. On the other hand, in the vast majority of cases, there is no point in jumping to another library instead of an already familiar one.
Of the libraries, I would like to note pyrogram, an asynchronous library that can simultaneously support both the Bot API and the MTProto API, and with the same methods. This may be interesting for some tasks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question