javap -verbose MyClass | grep "major"
javap -verbose MyClass | findstr "major"
TelegramBotsApi telegramBotsApi = new TelegramBotsApi();
// Set up Http proxy
DefaultBotOptions botOptions = ApiContext
.getInstance(DefaultBotOptions.class);
botOptions.setProxyHost("127.0.0.1");
botOptions.setProxyPort(9150);
// Select proxy type: [HTTP|SOCKS4|SOCKS5] (default: NO_PROXY)
botOptions.setProxyType(DefaultBotOptions.ProxyType.SOCKS5);
try {
telegramBotsApi.registerBot(new Bot(BotConfig.BOT_TOKEN, BotConfig.BOT_USERNAME, botOptions));
} catch (TelegramApiRequestException e) {
}
public class Bot extends AbilityBot {
...
}