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:

  1. be kind and avoid aggressive or offensive language toward other people
  2. do not submit links that are aimed at advertising your channels, groups or bots
  3. English only

founded 5 years ago
MODERATORS
 

This might be common knowledge by now considering how easy it is to find this repository, but it's new to me so I'll share: apparently, the desktop app developer is actively working on rewriting their app using tdlib.

Telegram Desktop would be the first official app to use tdlib. Right now, the only telegram-related app that uses it is Telegram X, which is an experimental app. The bot API, though, has always ran on tdlib since day one.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] cat@sopuli.xyz 2 points 1 year ago (1 children)

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.

[โ€“] riccardo@lemmy.ml 3 points 1 year ago

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)