added possibility to work via HTTP proxy

This commit is contained in:
flicus 2016-03-11 16:29:45 +03:00
parent dd4522d2fb
commit 593bc199a4

View File

@ -103,6 +103,16 @@ public class TelegramBotsApi {
}
}
/**
*
* @param host
* @param port
* @param scheme
*/
public void setProxy(String host, int port, String scheme) {
TelegramApiConfiguration.getInstance().setProxy(host, port, scheme);
}
/**
*
* @param botToken