You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to use telegram database API for automatization purposes, so I installed WSL2 and Ubuntu 20 on my windows PC and then compiled the tdlib package using instructions from TDLib themselves. I installed it in the $HOME/go/src/telegram.org directory, which I created just for this purpose. Then I did go get github.com/zelenin/go-tdlib, pasted example code from README to main.go (in another directory), and did go build.
It resulted in
imobulus@IMOBULUS-LAP:~/go/testing$ go build
# github.com/zelenin/go-tdlib/client
../src/github.com/zelenin/go-tdlib/client/tdlib.go:5:10: fatal error: td/telegram/td_json_client.h: No such file or directory
5 | #include <td/telegram/td_json_client.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
After some research i found out that this file is located in .../tdlib/include/td/telegram, so i copied the whole td folder in there. Next go build looked like this
Hi, @imobulus! I have the same issue. The following steps helped me:
In this manual - "https://tdlib.github.io/td/build.html?language=Go" you must select Linux, Ubuntu ..., checkbox "Install built TDLib to /usr/local instead of placing the files to td/tdlib" and g++ compiler.
P.S. In the described commands there is one: "cmake --build. --target install". Here you may need a "sudo"
Hi,
I need to use telegram database API for automatization purposes, so I installed WSL2 and Ubuntu 20 on my windows PC and then compiled the tdlib package using instructions from TDLib themselves. I installed it in the $HOME/go/src/telegram.org directory, which I created just for this purpose. Then I did
go get github.com/zelenin/go-tdlib
, pasted example code from README to main.go (in another directory), and didgo build
.It resulted in
After some research i found out that this file is located in
.../tdlib/include/td/telegram
, so i copied the wholetd
folder in there. Nextgo build
looked like thisI haven't been able to fix this issue so far.
P.S. I tried using tdlib with python wrapper. It worked like a charm, so tdlib is installed correctly.
The text was updated successfully, but these errors were encountered: