Skip to content

Conversation

@gregyjames
Copy link
Owner

Added a new endpoint to send files to the telegram chat.

Introduces a new /sendfile endpoint to accept file uploads and send them to Telegram. Adds file message handling to the notifier and queue layers, including new FileMessage type, queue separation for messages and files, and support for both RabbitMQ and in-memory channel backends.
Replaced JSON serialization with msgpack for FileMessage in RabbitMQQueue methods. Updated content type to 'application/octet-stream' and adjusted dependencies to include msgpack and tagparser. This change improves serialization efficiency and consistency for file messages.
Replaced the static context in main.go with Fiber's request context for message and file publishing. Improved logging in queue consumers to include file names when receiving file messages.
Changed the configuration file path from 'config.json' to '/usr/src/app/data/config.json' to ensure the application loads the config from the correct location.
@gregyjames gregyjames self-assigned this Dec 19, 2025
@gregyjames gregyjames merged commit 25a477d into main Dec 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants