Skip to content

feat: Add LINE and Telegram messaging support#1

Closed
laihenyi wants to merge 1 commit intoJessyTsui:masterfrom
laihenyi:feature/add-line-telegram-support
Closed

feat: Add LINE and Telegram messaging support#1
laihenyi wants to merge 1 commit intoJessyTsui:masterfrom
laihenyi:feature/add-line-telegram-support

Conversation

@laihenyi
Copy link
Contributor

This major enhancement extends Claude Code Remote with multi-platform messaging support:

🚀 New Features

LINE Messaging Support

  • LINE Bot API integration with token-based commands
  • Secure webhook handler with signature verification
  • Session management with 24-hour expiration
  • Support for both individual and group chats
  • User/Group ID whitelist security

Telegram Bot Support

  • Telegram Bot API with interactive buttons
  • Slash command support (/cmd TOKEN command)
  • Callback query handling for better UX
  • Group and private chat support
  • Chat ID-based authorization

Multi-Platform Architecture

  • Unified notification system supporting all platforms
  • Platform-agnostic session management
  • Configurable channel enabling/disabling
  • Parallel webhook server support

🛠️ Technical Implementation

Core Components

  • src/channels/line/ - LINE messaging implementation
  • src/channels/telegram/ - Telegram bot implementation
  • src/utils/controller-injector.js - Command injection utility
  • Multi-platform webhook servers with Express.js

Configuration & Documentation

  • Updated .env.example with all platform options
  • Comprehensive setup guides for each platform
  • Testing guide with ngrok instructions
  • Updated README with multi-platform support

Developer Experience

  • npm scripts for easy platform startup
  • Unified webhook launcher (start-all-webhooks.js)
  • Individual platform launchers
  • Enhanced error handling and logging

🔧 Usage Examples

Telegram: /cmd ABC12345 analyze this code
LINE: Token ABC12345 analyze this code
Email: Reply to notification emails

📋 Backward Compatibility

  • All existing email functionality preserved
  • Configuration migration path provided
  • No breaking changes to existing hooks

🤖 Generated with Claude Code

@JessyTsui
Copy link
Owner

Thanks @laihenyi for this extensive PR! Given the amount of new functionality, I need time to properly test everything and refactor the architecture to better support multiple platforms.
Also, there are 2 small conflicts that need to be resolved before merging.

- Fix processed-messages.json merge conflict
- Update README.md with latest features
- Clean up and organize project structure
- Maintain Telegram integration improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@JessyTsui
Copy link
Owner

@laihenyi Thank you for your excellent LINE and Telegram integration! 🎉

Due to rapid updates on our main branch, there were many merge conflicts with your original base. I had to
create a new branch based on yours, adapt the changes, and update some Telegram configurations before
merging.

While this PR will be closed, your contributions are fully preserved in the codebase with proper attribution
in the README and commit history.

Thanks for the great work! 🚀

@JessyTsui JessyTsui closed this Aug 1, 2025
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

Comments