Dankoy / jforwarder

Telegram bot for coub.com communities, tags and channels subscriptions.
https://t.me/coub_forwarder_bot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

fix: integration flow is sync for messages from kafka #127

Closed Dankoy closed 2 months ago

Dankoy commented 2 months ago

Description

Added new synchronous integration flow for sending messages from kafka for subscriptions. If telegram api failed then exception is thrown and controller reply with error message 500. So kafka never acknowledge failed messages and should send them later again.

These changes doesn't affect work flow with input messages from chats. They still work in async flow mode.

Fixes #126

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration: Firmware version: MacOS 14.3 (23D56) Hardware: Apple M1 Pro SDK: Eclipse Temurin JDK 21.0.2+13-LTS

Checklist: