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.
Telegram
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
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)
Interesting, thanks for sharing