Telegram MT v0.0.1-alpha MTProto.API

Provides basics methods of Telegram’s API. You may want to take a look to the current TL-schema.

Note : the latest API layer on Telegram’s documentation is API layer 23. A more recent (but undocumented?) schema can be found in the sources of the official Telegram Desktop client , currently (Apr. 2017) layer 66.

Summary

Functions

Initializes connection and save information on the user’s device and application

This method wrap the given query telling receiver (Telegram) that we use the API layer number layer

Functions

init_connection(device_model, system_version, app_version, lang, query)

Initializes connection and save information on the user’s device and application.

invoke_with_layer(layer, query)

This method wrap the given query telling receiver (Telegram) that we use the API layer number layer.

A layer is a collection of updated methods or constructors in a TL schema. Each layer is numbered with sequentially increasing numbers starting with 2. The first layer is the base layer — the TL schema without any changes.