Skip to content

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

Notifications You must be signed in to change notification settings

baylakmongush/telegram_sending

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages