this post was submitted on 07 Aug 2023
5 points (100.0% liked)
Telegram
1078 readers
2 users here now
A community about Telegram, the popular messaging app.
Rules:
- be kind and avoid aggressive or offensive language toward other people
- do not submit links that are aimed at advertising your channels, groups or bots
- English only
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Very interesting. I didn't even know about tdlib. According to the description tdlib is "Cross-platform library for building Telegram clients", which is very helpful to have.
Yes, using tdlib is almost always preferable to using a custom MTProto implementation. tdlib is guaranteed to implement the encryption protocol the correct way and it will also handle cached data so you don't have to. Will also save some time with the development and most importantly it abstracts some of the weirdness of the API so you won't have to deal with them. Also it's likely that a custom implementation won't be as performant as tdlib.
Unluckily it reached maturity relatively recently, so no official app has been able to move to tdlib yet (except for Unigram, which is an almost-official app built for Windows, that was initially using its own implementation but moved to tdlib some years ago)