Repository navigation
SMS Forwarder v1.0.7 - Improved Telegram Implementation
SMS Forwarder v1.0.7 - Improved Telegram Implementation
Release Date: October 17, 2025
π± Telegram Improvements
This release improves the Telegram forwarding implementation with better error handling and support for group/channel usernames.
β¨ What's New
Enhanced Telegram Integration
- Group Username Support - Now supports @username format for Telegram groups and channels
- Improved Error Handling - Better logging and error messages for Telegram API failures
- GET Request Method - Uses simple GET requests with URL encoding (like standard Telegram API usage)
- Better Response Handling - Reads and logs both success and error responses from Telegram API
- Connection Timeouts - Configurable timeouts to prevent hanging requests
Improved UI Documentation
- Updated Telegram Chat ID field with examples showing both numeric and @username formats
- Added helpful summary text explaining how to get bot token from @Botfather
- Better field labels ("Bot Token" instead of just "API KEY")
π§ Technical Details
Telegram Implementation Changes
- Rewritten
ForwardTaskForTelegramclass for better reliability - Uses
URLEncoderfor proper URL encoding (equivalent to Python'surllib.parse.quote_plus) - Comprehensive logging with TAG for easier debugging
- Proper connection cleanup with try-finally blocks
- Reads full response body for both success and error cases
Supported Chat ID Formats
- Numeric chat ID:
123456789 - Group username:
@spinykillergroup - Channel username:
@spinykillererror
π How to Use
Setting up Telegram Forwarding:
-
Create a Telegram Bot
- Message @Botfather on Telegram
- Use
/newbotcommand - Get your bot token (e.g.,
2106248400:AAGeMR9Pl30HMZ9YBUvZB6z9FYFHfRQvQuM)
-
Get Your Chat ID
- For personal chat: Use @userinfobot to get your chat ID
- For groups: Add your bot to the group and use the @username (e.g.,
@spinykillergroup) - For channels: Use the @channelname (e.g.,
@spinykillererror)
-
Configure in App
- Enable Telegram forwarding
- Enter your bot token in "Telegram Bot Token" field
- Enter chat ID or @username in "Target Telegram Chat ID" field
π― Benefits
- β More reliable Telegram message delivery
- β Better error messages for troubleshooting
- β Support for group/channel names (no need to find numeric IDs)
- β Consistent with standard Telegram API usage patterns
- β Easier debugging with detailed logs
π Compatibility
- Android Version: 7.0 (API 25) or higher
- Upgrade from v1.0.6: Safe upgrade - includes all previous fixes
- Telegram API: Compatible with latest Telegram Bot API
- Storage: Same size (~1.9 MB)
π Changes Summary
- β Rewrote Telegram sending logic for better reliability
- β Added support for @username format for groups/channels
- β Improved error handling and logging
- β Updated UI with helpful examples and documentation
- β Better connection management with timeouts
π Bug Fixes
All fixes from v1.0.6 are included:
- β Blocklist working correctly
- β Empty blocked numbers handled properly
All features from previous versions remain:
- β Sender blocklist
- β Multiple forwarding methods
- β Loop prevention
- β Auto-start functionality
π‘ Example Configuration
For Group Forwarding:
Bot Token: 2106248400:AAGeMR9Pl30HMZ9YBUvZB6z9FYFHfRQvQuM
Chat ID: @spinykillergroup
For Personal Chat:
Bot Token: 2106248400:AAGeMR9Pl30HMZ9YBUvZB6z9FYFHfRQvQuM
Chat ID: 123456789
For Error Channel:
Bot Token: 2106248400:AAGeMR9Pl30HMZ9YBUvZB6z9FYFHfRQvQuM
Chat ID: @spinykillererror
π Acknowledgments
Thanks for the feedback on improving the Telegram integration!
Download: SMS-Forwarder-v1.0.7.apk
Repository: github.com/spinykiller/sms-forwarder
Issues/Support: GitHub Issues