Skip to main content

A Command Line Interface for Telegram

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

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

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.1.0.tar.gz (20.9 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.1.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dark_send-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b9bb7c3784290c6478f52f48fccd76c23fc42249c3c8423707fa8df7ac1c52de
MD5 847ed297f4329b7b9fa2d4d6bc6a37d0
BLAKE2b-256 692057b1ae16952507402c3b5b89d1eb0342ca33f3eb97f58e7b29772f59144f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dark_send-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b5c3f4ea80fc14a8b659fce0f592dab61e470a7dc3621ac916b60adde88f69
MD5 c3ff11bded2d6115147ed90011f55518
BLAKE2b-256 7fa853585c243625e86d1bcb30c0de38263c09a2e311da76a4918891286d7792

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