每当我尝试使用Java [Unable to execute deleteWebhook method]
运行echo bot都会导致错误。我对此很陌生,我尝试更改socksProxyHost
和socksProxyPort
,但仍然无法使用。
public class Main {
public static void main(String[] args) {
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "socksProxyHost", "127.0.0.1" );
System.getProperties().put( "socksProxyPort", "9150" );
ApiContextInitializer.init();
TelegramBotsApi botsApi = new TelegramBotsApi();
try {
botsApi.registerBot(new myBiruh12_bot());
} catch (TelegramApiException e) {
e.printStackTrace();
}
}
}
错误在行(registerBot)。