Remove locale retrieval to avoid exception
This commit is contained in:
parent
c97476f05d
commit
02fbb67b59
@ -367,7 +367,8 @@ public abstract class AbilityBot extends TelegramLongPollingBot {
|
|||||||
String backupData = IOUtils.toString(reader);
|
String backupData = IOUtils.toString(reader);
|
||||||
if (db.recover(backupData)) {
|
if (db.recover(backupData)) {
|
||||||
silent.send(getLocalizedMessage("ability.recover.success",
|
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 {
|
} else {
|
||||||
silent.send(getLocalizedMessage("ability.recover.fail",
|
silent.send(getLocalizedMessage("ability.recover.fail",
|
||||||
AbilityUtils.getUser(update).getLanguageCode()), chatId);
|
AbilityUtils.getUser(update).getLanguageCode()), chatId);
|
||||||
|
Loading…
Reference in New Issue
Block a user