Skip to content

Commit

Permalink
Telegram Response correction
Browse files Browse the repository at this point in the history
The telegram message was wrongly placed in differnt if statement.
This commit makes that Fix and Fix #16.
  • Loading branch information
rosehgal committed Jun 1, 2020
1 parent 6819a76 commit 396fea4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ public String handleRequest(long chatId, String text) {

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

return response;
log.error(response);
return "Something bad just happened with me. Stay back till I get fixed.";
}
else{
if(argument.isEmpty())
Expand Down

0 comments on commit 396fea4

Please sign in to comment.