reo7sp / tgbot-cpp

C++ library for Telegram bot API
http://reo7sp.github.io/tgbot-cpp
MIT License
995 stars 238 forks source link

Cannot use my own Telegram server that I hosted on a machine with 8082 port #281

Open HetDaftary opened 1 year ago

HetDaftary commented 1 year ago

I am using the version v1.7.1 and I want to use the Telegram server "192.168.1.135:8082" where my server made with tdlib/telegram-bot-api (version 6.7.1) is hosted right now.

I am currently using the following code to connect to my server.

image

And the server is hosted like this on my local network image

But it throws the following exception at run time: terminate called after throwing an instance of 'boost::wrapexcept<boost::system::system_error>' what(): resolve: Host not found (authoritative)

reo7sp commented 1 year ago

192.168.1.1335

You have got a typo in IP address