Telegram Client in C

I am investigating a Telegram client in C so that I can write a Pebble smart card client. I understand the Pebble side and all the Telegram methods shown here , but I have absolutely no idea how to send these to C.

I believe this has something to do with TL Language and the MTProto service, but I think this material is beyond my current understanding. I also found this code collection, but again, I don't know how to use it https://github.com/vysheng/tgl/ .

EDIT 1:

The C-based app with the PebbleKitJS section running on the phone seems the best for this. Any help on implementing MTProto with JS?

+5
source share
1 answer

You have 128 Kbytes of Pebble RAM attached to an ARM Cortex M3 or M4.

This means that your entire request must match 128 KB, along with the HTTP implementation, the encryption implementation, the corresponding encryption key, and things like what you want to keep in memory (contact list, message history, etc.).

Honestly, this will not work, and the C programming language is not your problem here, so the HTTP-based encrypted protocol is not what you want to run from 128 KB of RAM.

Since your Pebble does not have an Internet connection on its own, you will need an application running on a smartphone (or any other Bluetooth device) that will talk to your Pebble - let it be your Telegram client and just show alerts on your SmartWatch.

+8
source

All Articles