Open milad2golnia opened 1 year ago
I tested http://localhost:9080
with following change:
this.bot = new TelegramBot(token, {
polling: true,
request: {
proxy: 'http://localhost:9080',
} as any,
});
But it gives me the same error so it seems the problem is not related to using socks proxy but using proxy in general.
I have read:
I am using the latest version of the library.
Expected Behavior
I'm trying to use a socks5 proxy with this module but I faced error. First off, I'm sure that socks proxy is working correctly and I tested it with
curl
like below:I use the socks proxy in my code like this:
And it raises following error:
Actual Behavior
The actual behavior is returning normally and seeing the message in the channel with given chatID.
Steps to reproduce the Behavior
Setup a socks proxy and use my code.