diff --git a/dispatcher/src/main/java/com/bipbup/controllers/UpdateProcessor.java b/dispatcher/src/main/java/com/bipbup/controllers/UpdateProcessor.java index 024521c..ef962bc 100644 --- a/dispatcher/src/main/java/com/bipbup/controllers/UpdateProcessor.java +++ b/dispatcher/src/main/java/com/bipbup/controllers/UpdateProcessor.java @@ -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(); diff --git a/dispatcher/src/main/resources/application.yaml b/dispatcher/src/main/resources/application.yaml index 1fe80fc..c2609cd 100644 --- a/dispatcher/src/main/resources/application.yaml +++ b/dispatcher/src/main/resources/application.yaml @@ -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: diff --git a/docker-compose.yml b/docker-compose.yml index 9079249..02a6a7c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,12 +2,8 @@ volumes: postgres-data: driver: local - kafka-data: - driver: local redis-data: driver: local - traefik-certs: - driver: local services: dispatcher: