Skip to main content

A CLI Telegram client written in python

Project description

dark-send

Dark-send is a CLI telegram client written in python. It sends messages and files through your personal telegram account using a daemon that maintains a connection in the background, much like the stock telegram desktop app.

Dependencies

pip3 install -r requirements.txt 

Installation

Install directly from PyPi

pip3 install dark-send 

Install from AUR

yay -S dark-send

Or

Clone the repository to a local directory

git clone https://github.com/mindhuntr/dark-send 

For system wide installation

cd dark-send
pip3 install .

For user specific installation

cd dark-send
pip3 install --user .

Configuration

dark-send requires a daemon process running in the background. The daemon can be initialized using a parameter

dark-send --daemonize

Once the config file is generated, it is more robust to create a systemd-unit file that automatically executes the daemon once the system is up


[Unit]
Description=Daemon for dark-send
After=network.target

[Service]
Type=simple
User=YOUR_USER
ExecStart=/usr/bin/python3 -m dark_send.daemon
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

Create a file called dark-send.service with the above content and place it in "/etc/systemd/system". Replace "YOUR_USER" with your username and execute the following commands

systemctl daemon-reload 
systemctl enable dark-send.service
systemctl start dark-send.service

Usage

Display help:

dark-send --help 

To send a message:

dark-send Hello!

Demo

To send an image:

dark-send -i /path/to/image 

To send files as album:

dark-send -a -f /path/to/file /path/to/file 

Demo

To send a video directly without selecting from the chats list

dark-send -v /path/to/file -c "Alienists" 

You can also send messages or files to topics within a group

Demo

Note

dark-send now supports bot logins from v1.2.0. It leverages the user client to fetch chats and then the bot account to send messages and files. Users can initialize several bot accounts and use them by names they designate.

dark-send -b FelineBot -f /path/to/file 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dark_send-1.3.0.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dark_send-1.3.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file dark_send-1.3.0.tar.gz.

File metadata

  • Download URL: dark_send-1.3.0.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dark_send-1.3.0.tar.gz
Algorithm Hash digest
SHA256 abeba58ca28741670c4c52f11f9dfbfb849d65ff2a4c8d269d3808dfcc087734
MD5 ac4a719f6a50b91227df9c9c3c9c9747
BLAKE2b-256 097a508f32907d381e228328b8345ed80d2ff768d9ca692e437e9a5430b8a863

See more details on using hashes here.

File details

Details for the file dark_send-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: dark_send-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dark_send-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ecc9def8cc0b6ab285de81ce87a6313f9d88a7d50af556d9f5101c3dfe2d92a
MD5 54ebd9b303d16104acd48bcb8da54861
BLAKE2b-256 668b32871404e1ead2fd9694ff5c9a5d2bac94cbb94223c8cc41762bcdfd3ca4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page