Skip to content

Commit 396fea4

Browse files
committed
Telegram Response correction
The telegram message was wrongly placed in differnt if statement. This commit makes that Fix and Fix #16.
1 parent 6819a76 commit 396fea4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/io/github/trashemail/Telegram/TelegramRequestHandler.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,11 @@ public String handleRequest(long chatId, String text) {
116116

117117
if(response!=null) {
118118
userRepository.save(user);
119-
return "Something bad just happened with me. Stay back till I get fixed.";
119+
return "Email successfully created.";
120120
}
121121

122-
return response;
122+
log.error(response);
123+
return "Something bad just happened with me. Stay back till I get fixed.";
123124
}
124125
else{
125126
if(argument.isEmpty())

0 commit comments

Comments
 (0)