smartnode / telebot

Telegram Bot API in C
https://elmurod.net/telebot
Apache License 2.0
162 stars 38 forks source link

Native libcurl socks5 proxe support #18

Closed denzen84 closed 5 years ago

denzen84 commented 5 years ago

It would be great to include into telebot native libCURL function to support SOCKS proxy.

denzen84 commented 5 years ago

This patch makes native libcurl support for telebot. Added new function telebot_use_proxy(telebot_handler_t handle, char *addr) where possible to specify proxy like as socks5://some_addr:port, http://some_addr:port, https://some_addr:port and other types...

telebot_curl_proxy_support.zip

smartnode commented 5 years ago

The patch has been applied https://github.com/smartnode/telebot/commit/bb2056d20a49703ad09b1dc037d4f6dc46314512