mirror of
https://github.com/aNNiMON/ffmpegbot
synced 2024-09-20 10:04:19 +03:00
Don't suppress telegram exceptions
This commit is contained in:
parent
5d480be29e
commit
59af973b11
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user