Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 684 Bytes

README.md

File metadata and controls

45 lines (35 loc) · 684 Bytes

Telegram Forwarder

Supports

  • user accounts
  • private channels
  • public channels

Installation

git clone <url>
cd telegram-forwarder
# create env
python3 -m venv env
# activate env
source env/bin/activate
# install requirements
pip install -r requirements.txt

Usage

First got to .env file and add your credentials.

API_ID = <api-id>
API_HASH = <api-hash>
FROM_CHANNEL_ID = <enter-from-channel-id>
TO_CHANNEL_ID = <enter-to-channel-id>
PHONE_NUMBER = <phone-number>
SESSION_NAME = <session-name> # can just enter "session"

Then run the script.

# activate env
source env/bin/activate
# run
python3 main.py

License

MIT