{"repo":"Linuxmaster14/TGForwarder","free":true,"listed":false,"github":"https://github.com/Linuxmaster14/TGForwarder","clone":"git clone https://github.com/Linuxmaster14/TGForwarder.git","description":"TGForwarder is a self-hosted message forwarding tool for Telegram. It uses your bot token to monitor a source chat (channel, group, or private) and forwards all messages to a specified destination. Perfect for automation, backups, or cross-posting.","language":"Python","stars":42,"topics":["bot","forwarder-bot","forwarder-telegram","python","script","telegram","telegram-bot"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Telegram Forwarder A Python script using Telethon to automatically forward messages from a source chat/group/channel to a target destination. Features - Forward messages from any Telegram chat, group, or channel - Multiple source/target mapping support - One-to-many and many-to-one forwarding - Support for both user accounts and bot accounts - Optional removal of \"Forward from...\" signature - Optional quiet mode for console logging - Automatic handling of rate limits - Comprehensive logging - Easy configuration via environment variables Prerequisites 1. Telegram API Credentials : Get your api id and api hash from https://my.telegram.org 2. Bot Token (optional): If you want to use a bot account, get a bot token from @BotFather 3. Chat IDs : You need the IDs of the source and target chats/groups/channels Installation 1. Clone this repository: 2. Install the required dependencies: 3. Create a .env file based on the example: 4. Edit the .env file and fill in your credentials: Option 1: Single Source/Target (Legacy) Option 2: Multiple Sources/Targets (Recommended) Getting Chat IDs To find chat IDs, you can: 1. For private chats : Use the user's ID (positive number) 2. For groups/channels : Use the negative ID format - For groups: -100 + group ID (e.g., -1001234567890 ) - For channels: -100 + channel ID (e.g., -1001234567890 ) You can use tools like @userinfobot or @get id bot to get chat IDs. Usage Run the script with various options: Command Line Arguments Argument Short Descript","default_branch":null,"files":null,"tree":[],"storefront":"/r/Linuxmaster14","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Linuxmaster14/TGForwarder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}