daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Dec 11th, 2018 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     import telega.drivers.requests: RequestsHttpClient;
  2.  
  3.     const tgconf = config["telegram"];
  4.  
  5.     auto httpClient = new RequestsHttpClient();
  6.  
  7.     const socks5conf = tgconf["SOCKS5_proxy"];
  8.  
  9.     httpClient.setProxy(socks5conf["server"].get!string, socks5conf["port"].get!ushort);
  10.  
  11.     telegram = new telega.BotApi(tgconf["secretBotToken"].get!string, telega.BaseApiUrl, httpClient);
  12.     //~ telegram = new telega.BotApi(tgconf["secretBotToken"].get!string);
  13.  
  14.     auto incoming = telegram.getUpdates(100, 1);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top