2

i was looking at telegram API functions list at:

https://core.telegram.org/method/auth.checkPhone

and want to know what's the language name of this codes:

(auth.checkPhone "1548789888")"=
(auth.checkedPhone
  phone_registered:(boolFalse)
  phone_invited:(boolFalse)
)

is this json type?

how can i write it on c#?

where can i find a sample application?

same question

Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
motevalizadeh
  • 5,244
  • 14
  • 61
  • 108

1 Answers1

2

Telegram has its own internal encoding language called TL. It is used to describe all the types as well as commands that Telegram Servers understand.

You can actually build your own Telegram library, here are a few steps:

1) build a TL parser that can encode and decode to and from TL, this is not as hard as it sounds: TL builds up on a few primitive types,you can take a look at the documentation here: https://core.telegram.org/mtproto/serialize and here: https://core.telegram.org/mtproto/TL, but it's alot easier to start from the TL spec here: https://github.com/zhukov/webogram/blob/master/app/js/lib/schema.tl.txt, here: https://github.com/zhukov/webogram/blob/master/app/js/lib/config.js#L97 and here: https://github.com/zhukov/webogram/blob/master/app/js/lib/config.js#L102

2) once you have built your TL parser you need to learn how to create an Auth_key. Here is a simple guide for that

3) You would need to register for your own app_id on telegram.org, you would need that to identify the telegram client you are building.

4) Once you can get Your Auth_key successfully, then you can follow these additional steps to find your nearest Telegram Data-center, possibly re-generate your Auth_key on that data-center, then run the user.Authentication commands to create a session for your mobile number on that data-center via your new Telegram Client

5) once you can grasp these initial steps, the remaining commands should be easier.

cheers.

Community
  • 1
  • 1
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157