From 593bc199a41e79cd159489a7438c85870c5ee47a Mon Sep 17 00:00:00 2001 From: flicus Date: Fri, 11 Mar 2016 16:29:45 +0300 Subject: [PATCH] added possibility to work via HTTP proxy --- .../org/telegram/telegrambots/TelegramBotsApi.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java b/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java index 7d20995d..e1b101ce 100644 --- a/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java +++ b/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java @@ -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