Skip to content

Commit

Permalink
fix: null in chatMember
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatRuslanovich committed Oct 18, 2024
1 parent 701ce86 commit f770ffa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ else if (update.hasCallbackQuery())
}

private void logEmptyMessageUpdate(Update update) {
if (update.getMyChatMember() == null) {
log.warn("Chat member is null");
return;
}

var status = update.getMyChatMember()
.getNewChatMember()
.getStatus();
Expand Down
4 changes: 2 additions & 2 deletions dispatcher/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ server:
enabled: false

bot:
url: ${BOT_URI:https://b33d-87-117-189-157.ngrok-free.app}
url: ${BOT_URI:unset}
username: ${BOT_USERNAME:headh_v2_bot}
token: ${BOT_TOKEN:7361235631:AAGgia9VqWY6Q_o1pW2WTaLQ4d6vzLgRcOg}
token: ${BOT_TOKEN:token}

spring:
kafka:
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
volumes:
postgres-data:
driver: local
kafka-data:
driver: local
redis-data:
driver: local
traefik-certs:
driver: local

services:
dispatcher:
Expand Down

0 comments on commit f770ffa

Please sign in to comment.