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 

Or

Clone the repository to a local directory

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

For system wide installation

python3 setup.py install

For user specific installation

python3 setup.py 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.2.1.tar.gz (23.4 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.2.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dark_send-1.2.1.tar.gz
  • Upload date:
  • Size: 23.4 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.2.1.tar.gz
Algorithm Hash digest
SHA256 09eeb3dd89709e20652a637a77c3a21e58921631a99ebbfbbd20f4915aec3e30
MD5 2c9e5ac5ef9d71c1a11d33d6523ee83d
BLAKE2b-256 5c645f6bcab60242c790c13173c1bed8bb1452866fe8ccaf0f0508c650aa18a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dark_send-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0120b1f23e7b18cd13ee0f85ba88f660d4e634a2ed1344b667aad1a96206a6a9
MD5 df2d0464fd61b59ed007a57c38a6957d
BLAKE2b-256 cb0c23a17aa7104c70acc0f3600b5bb55c6cb260e59821c7ab4a80e39cbf6882

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