Python CLI tool and library for sending messages to Telegram
Project description
telegram-cli
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for telegram_cli-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44830aa4ea40117c94453246c97f8231bc876c5755dbbf0e015b709e22866e7d |
|
MD5 | 449c316eb596a9bf900fb4647800363b |
|
BLAKE2b-256 | 2347ab99525abdd6f9fd1cd25f1b260fb647e2fd0b233ad21b2a21492b7694d8 |