Bugfix
This commit is contained in:
parent
e597baf533
commit
6f904af461
|
@ -54,8 +54,12 @@ public abstract class TelegramLongPollingSessionBot extends TelegramLongPollingB
|
|||
onUpdateReceived(update, chatSession);
|
||||
return;
|
||||
}
|
||||
chatIdConverter.setSessionId(message.getChatId());
|
||||
chatSession = this.getSession(message);
|
||||
if (message.getChat() != null) {
|
||||
chatIdConverter.setSessionId(message.getChatId());
|
||||
chatSession = this.getSession(message);
|
||||
} else {
|
||||
chatSession = Optional.empty();
|
||||
}
|
||||
onUpdateReceived(update, chatSession);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue