Remove locale retrieval to avoid exception

This commit is contained in:
davioooh 2018-05-04 18:16:04 +02:00 committed by Abbas Abou Daya
parent aecfe7693a
commit bd7092921a

View File

@ -367,7 +367,8 @@ public abstract class AbilityBot extends TelegramLongPollingBot {
String backupData = IOUtils.toString(reader);
if (db.recover(backupData)) {
silent.send(getLocalizedMessage("ability.recover.success",
AbilityUtils.getUser(update).getLanguageCode()), chatId); // TODO how to retrieve language?
""), chatId);
// TODO how to retrieve language? Getting java.lang.IllegalStateException: Could not retrieve originating user from update
} else {
silent.send(getLocalizedMessage("ability.recover.fail",
AbilityUtils.getUser(update).getLanguageCode()), chatId);