feat(telegram): add support for video and voice messages#451
Open
kofany wants to merge 1 commit intoRITlug:mainfrom
Open
feat(telegram): add support for video and voice messages#451kofany wants to merge 1 commit intoRITlug:mainfrom
kofany wants to merge 1 commit intoRITlug:mainfrom
Conversation
Add handlers for Telegram video and voice messages that were previously falling through to the default case, causing unhandled message warnings. - Add videoHandler to notify IRC when videos are shared - Add voiceHandler to notify IRC when voice messages are shared - Include caption support for both message types - Add unit tests for new handlers 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for handling video and voice messages received from Telegram and forwarding notifications about these messages to IRC. It introduces new handler functions for both video and voice messages, updates the main update handler to trigger these functions, and adds comprehensive tests to ensure the new handlers work correctly with and without captions.
Telegram Message Handling Enhancements:
videoHandlerandvoiceHandlerwhen appropriate (handler.go).videoHandlerandvoiceHandlerfunctions to format and send notifications to IRC, including handling message captions if present (handler.go).Testing Improvements:
videoHandlerandvoiceHandler, covering cases with and without captions to ensure correct message formatting and IRC notification (handler_test.go).