tdlight-team/tdlight-telegram-bot-api

Running tdlight-telegram-bot-api via corporate HTTP proxy

ipetrovmgn opened this issue · 1 comments

Is it possible to run tdlight-telegram-bot-api via corporate proxy?

Unfortunately original telegram-bot-api needs to modify source code in Client.cpp to work via proxy. You have methods proxyTypeHttp proxyTypeMtproto proxyTypeSocks5 but how use them? Docker-entrypoint show TELEGRAM_PROXY option but it related to webhooks,
In the same time tdlight-api-openapi.yaml have options /addProxy via POST. Kindly please advice what should be done? Thanks!

You need to add a proxy first using the addProxy method, you'll get a proxy_id, use that id with the enableProxy method to use it
Note that proxies are per bot and not for the whole botapi