I am in the process of investigating a Telegram client in C so that I can write a client for the Pebble smartwatch/s. I understand the Pebble side, and all of the Telegram methods shown here, but I have absolutely no clue how to send those in C.
I figure it has something to do with a "TL Language" and the MTProto service, but I think this stuff is beyond my current understanding. I also found this collection of code but again, no clue how to use it https://github.com/vysheng/tgl/.
EDIT 1:
A C-based app with a PebbleKitJS section running on the phone seems like the best route for this. Any help on implementing MTProto with JS?