1
0
mirror of https://github.com/aNNiMON/ffmpegbot synced 2024-09-19 22:54:20 +03:00

Don't suppress telegram exceptions

This commit is contained in:
aNNiMON 2023-01-10 23:13:54 +02:00
parent 5d480be29e
commit 59af973b11

View File

@ -13,6 +13,7 @@ import org.jetbrains.annotations.NotNull;
import org.telegram.telegrambots.meta.api.methods.BotApiMethod; import org.telegram.telegrambots.meta.api.methods.BotApiMethod;
import org.telegram.telegrambots.meta.api.objects.Update; import org.telegram.telegrambots.meta.api.objects.Update;
import org.telegram.telegrambots.meta.api.objects.User; import org.telegram.telegrambots.meta.api.objects.User;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
import java.util.EnumSet; import java.util.EnumSet;
@ -63,4 +64,9 @@ public class MainBotHandler extends BotHandler {
return true; return true;
return roles.contains(For.USER); return roles.contains(For.USER);
} }
@Override
public void handleTelegramApiException(TelegramApiException ex) {
throw new RuntimeException(ex);
}
} }