Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.12 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.12 KB

Telegram sending script

🦋 This is a simple script to send a message to friends via Telegram api and python.

1. Register my.telegram.org

Снимок экрана 2023-01-04 в 20 56 16

2. Create app and get api_id and api_hash

Снимок экрана 2023-01-04 в 20 57 09

3. Set environment and install requirements

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

4. Run script with arguments

python3 main.py -i <api_id> -a <api_hash> -p <phone_number> -m <message> -u <username> -c <username_target> -f <sending_file>

-i -- api_id from my.telegram.org
-a -- api_hash from my.telegram.org
-p -- phone number in international format
-m -- message for sending
-u -- your username
-c -- username target for sending message
-f -- sending file (optional)