Skip to main content

Python CLI tool and library for sending messages to Telegram

Project description

telegram-cli

PyPI Changelog Tests License

Python CLI tool and library for sending messages to Telegram

Installation

Install this tool using pip:

pip install telegram-cli

Usage

For sending a simple text message to a user o group, run:

export TELEGRAM_TOKEN='bot123456:de4dbeefde4dbeefde4dbeefde4dbeefde4dbeef' 

$ tgm message send --chat-id 123456 --text 'Hello'
message-id: 676

For help, run:

telegram-cli --help

You can also use:

python -m telegram_cli --help

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd telegram-cli
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

telegram-cli-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

telegram_cli-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file telegram-cli-0.1.0.tar.gz.

File metadata

  • Download URL: telegram-cli-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for telegram-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cebedb98deb3385c519c8ea30bdedfafa1ee407cc62e3f311c8bbee14fa6f816
MD5 5c622313083fd18bff9185aa2d4a8c98
BLAKE2b-256 bdf2e66e9ad46602618bfd02ecfca9aaff33ec291cf32c69f91cd7735c251d80

See more details on using hashes here.

File details

Details for the file telegram_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for telegram_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44830aa4ea40117c94453246c97f8231bc876c5755dbbf0e015b709e22866e7d
MD5 449c316eb596a9bf900fb4647800363b
BLAKE2b-256 2347ab99525abdd6f9fd1cd25f1b260fb647e2fd0b233ad21b2a21492b7694d8

See more details on using hashes here.

Supported by

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