Skip to content

SMS Forwarder v1.0.7 - Improved Telegram Implementation

Choose a tag to compare

@spinykiller spinykiller released this 17 Oct 06:53
· 24 commits to master since this release

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 ForwardTaskForTelegram class for better reliability
  • Uses URLEncoder for proper URL encoding (equivalent to Python's urllib.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:

  1. Create a Telegram Bot

    • Message @Botfather on Telegram
    • Use /newbot command
    • Get your bot token (e.g., 2106248400:AAGeMR9Pl30HMZ9YBUvZB6z9FYFHfRQvQuM)
  2. 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)
  3. 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