TDLib (Telegram Database library) is a cross-platform library for building Telegram clients. It can be easily used from almost any programming language.
Questions tagged [tdlib]
67 questions
12
votes
1 answer
How to delete Telegram app (api_key & api_hash)?
I am trying to delete telegram api_key & api_hash, or atleast reset api_hash.
But i can't find the option to do this in this page https://my.telegram.org/apps.
Does anyone know how to delete or reset api_hash of telegram api app?

Dahou
- 522
- 4
- 12
8
votes
1 answer
TDLib: how to send bold text in the message? (С++)
Using the official TDLib C++ example, I'm trying to send a message with formatted markdown text.
Here's my code:
auto send_message = td_api::make_object();
send_message->chat_id_ = -1001424068198;
auto message_content =…

Sargis
- 143
- 1
- 9
5
votes
0 answers
TDLib: Download a file without saving to disk
I am using TDLib to implement my custom Telegram client in C#. When initializing the library, I have to set the folder for the telegram cache files and local databases. Whenever I download a photo with TdApi.DownloadFile, it is saved in that folder,…

Lázár Zsolt
- 685
- 8
- 29
5
votes
1 answer
Syncing multiple asynchronous requests in Java
I am using the official Telegram Api (TDLib) in Java to request information about all members of a group. Using their IDs I am sending asynchronous requests to the server and I receive User objects for each request inside the ResultHandler like…
user4878548
4
votes
1 answer
telegram api, can i launch video live streamings?
I'm so bit confused about Telegram API/TlDB options. In the telegram docs, says that with the telegram-api you can do (programmatically) everything that can do with the app as a user.
I used telethon (python) library to do some tests, but i struggle…

Alex Vaisberg
- 51
- 2
4
votes
3 answers
How to use Telegram's TDlib with Node.js
There is TDlib which allows to work with Telegram Client API.
Documentation says that it's possible to use it with almost any language.
I can't imagine myself how I can use it with Node.js
Could you tell me where to start from or provide me with a…

Roman Roman
- 807
- 9
- 26
3
votes
0 answers
How to use .lib files - node-gyp windows
I have .lib static library - windows. How correctly include it to node-gyp project. I did it, but I caught error LNK2001: unresolved external symbol. I think, I add library incorrectly. This libriary is tdlib (telegram database library). Thank you…

Yaroslav
- 61
- 5
3
votes
0 answers
How to persist session/save user authentication using the TDLib Telegram library for flutter?
Does anyone know of a way to persist the user's session such as saving the session and loading it back into the app without the user needing to enter their phone number and go through the sign in process again?
The issue I have is that, every time I…

ARTester403
- 43
- 4
3
votes
1 answer
Telegram TDLib Android : How to store apiId and apiHash?
I am trying to build an android telegram client using the famous TDLib. Unfortunately, I could not find any good tutorials or documentation about using this library in android. But, I've understood how the library works from the Java examples.
The…

theapache64
- 10,926
- 9
- 65
- 108
3
votes
1 answer
TDLib - send message to other person by his phone number
I am using the TDLib API of telegram.
I know the receivers phone number.
How to send a message to him, no matter whether there is already a chat or not?
How to get the chat id?

Asqiir
- 607
- 1
- 8
- 23
3
votes
1 answer
How to request all chats/groups of the user through Telegram Database Library(TDLib) for Node.js
The official example from telegram explains that in order to use getChats() command, one needs to set two parameters 'offset_order' and 'offset_chat_id'.
I'm using this node.js wrapper for the TDLib.
So when I use getChats() with the following…

Pets
- 115
- 10
2
votes
0 answers
How to synchronize API calls in TDLight-Java correctly
I need to gather some statistics about Telegram channels administrated by user. To work with the Telegram API I use tdlight-java. Each request to Telegram in this library performes through the SimpleTelegramClient object. That object runs on its own…

Daniil Popov
- 21
- 1
2
votes
0 answers
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
trying to run a golang program, but I receive the error of gcc as:
command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation…

mike
- 31
- 2
2
votes
0 answers
How to implement Telegram bot as a widget on your website?
I'm trying to create some sort of live chat widget, but with a Telegram bot instead of a real person on the other side. I don't know if it is possible, but ideally, there is a chat window that can be implemented on a website, and establishes a new…

Pjotr Mega
- 33
- 3
2
votes
1 answer
How get telegram user info by UserID?
I have a user_id like 2024211111. How i can get user info by this user_id?
Tdlib api have a method called getUser, but it doesn't work with this user_id (this user_id not in my ChatList)

Air Loid
- 21
- 1