Telegram message forwarder.
Use this tool to forward messages from one Telegram chat to another. All type of chats are supported: private chats, groups, channels, supergroups, etc.
📢 Connect with us! Join our Telegram group for support and collaboration: t.me/igohub
You can use the Golang binary to install tgfwd:
go install github.com/igolaizola/tgfwd/cmd/tgfwd@latest
Or you can download the binary from the releases
Obtain your Telegram App ID and App Hash by following this guide https://core.telegram.org/api/obtaining_api_id
Use the login
command to login to your Telegram account and generate a session file:
tgfwd login --hash app-hash --id app-id --session file.session --phone phone-number
The phone number must be in the international format (e.g. +34666666666)
Use the list
command to list your Telegram chats and obtain their IDs:
tgfwd list --hash app-hash --id app-id --session file.session
Use this command to find out the ID of the chats from which you want to forward messages and to which you want to forward them.
Use the run
command to forward telegram messages from one chat to another:
tgfwd run --hash app-hash --id app-id --session file.session \
--fwd from-chat-id-1:to-chat-id-2 \
--fwd from-chat-id-3:to-chat-id-4
You can use the --fwd
flag multiple times to forward messages using different chats.
Instead of passing the parameters to the command, you can use a configuration file:
tgfwd run --config tgfwd.conf
An example configuration file tgfwd.conf
:
debug true
hash app-hash
id app-id
session tgfwd.session
fwd 10000001:10000002
fwd 10000003:10000004
If you have found my code helpful, please give the repository a star ⭐
Additionally, if you would like to support my late-night coding efforts and the coffee that keeps me going, I would greatly appreciate a donation.
You can invite me for a coffee at ko-fi (0% fees):
Or at buymeacoffee:
Donate to my PayPal:
Sponsor me on GitHub:
github.com/sponsors/igolaizola
Or donate to any of my crypto addresses:
- BTC
bc1qvuyrqwhml65adlu0j6l59mpfeez8ahdmm6t3ge
- ETH
0x960a7a9cdba245c106F729170693C0BaE8b2fdeD
- USDT (TRC20)
TD35PTZhsvWmR5gB12cVLtJwZtTv1nroDU
- USDC (BEP20) / BUSD (BEP20)
0x960a7a9cdba245c106F729170693C0BaE8b2fdeD
- Monero
41yc4R9d9iZMePe47VbfameDWASYrVcjoZJhJHFaK7DM3F2F41HmcygCrnLptS4hkiJARCwQcWbkW9k1z1xQtGSCAu3A7V4
Thanks for your support!
Some of the resources I used to create this project: