Advertisement
Guest User

Untitled

a guest
Sep 9th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. const TelegramBot = require('node-telegram-bot-api');
  2. const Agent = require('socks5-https-client/lib/Agent');
  3.  
  4. const bot = new TelegramBot(config.botToken, {
  5. polling: true,
  6. request: {
  7. agentClass: Agent,
  8. agentOptions: {
  9. socksHost: config.socksHost,
  10. socksPort: parseInt(config.socksPort),
  11. // Authorization
  12. socksUsername: config.socksUsername,
  13. socksPassword: config.socksPassword
  14. }
  15. }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement