added possibility to work via HTTP proxy
This commit is contained in:
parent
dd4522d2fb
commit
593bc199a4
@ -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
|
* @param botToken
|
||||||
|
Loading…
Reference in New Issue
Block a user