By Admin on Thursday, 16 April 2020
Category: All

Telegram Client

Telegram offers two kinds of APIs, one is Bot API which allows to create programs that use Bots and HTTPs as protocol. Telegram API and TDLib allows to build customized Telegram clients and is much more powerful than Bot API.

From sgcWebSockets 4.3.7 supports TDLib through tdjson library (for Windows 32 and Windows 64), which means that you can build your own telegram client. TDLib takes care of all network implementation details, encryption and local data storage. TDLib supports all Telegram features.

TDLib (Telegram Database Library) Advantages

 Dependencies

TDLib requires other third-parties libraries: OpenSSL and ZLib. These libraries must be deployed with tdjson library. 

Windows versions requires VCRuntime which can be download from microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=52685

 Creating your Telegram Application

In order to obtain an API id and develop your own application using the Telegram API you need to do the following:

These values must be set in Telegram.API property of Telegram component. In order to authenticate, you must set your phone number (with international code), example: 34699123456

The following parameters can be configured:

Once you have configured Telegram Component, you can set Active property to true and program will try to connect to Telegram. 

Code Sample 

This browser does not support the video element.

Delphi Telegram TDLib API

Related Posts