Closes #335
This commit is contained in:
parent
91eaccd8ad
commit
083f020a35
@ -85,7 +85,7 @@ public class DeleteMessage extends BotApiMethod<Boolean> {
|
|||||||
if (result.getOk()) {
|
if (result.getOk()) {
|
||||||
return result.getResult();
|
return result.getResult();
|
||||||
} else {
|
} else {
|
||||||
throw new TelegramApiRequestException("Error editing message caption", result);
|
throw new TelegramApiRequestException("Error deleting message", result);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new TelegramApiRequestException("Unable to deserialize response", e);
|
throw new TelegramApiRequestException("Unable to deserialize response", e);
|
||||||
|
Loading…
Reference in New Issue
Block a user