Utilites and CLI for MAX and Telegram messengers.
Project description
messenger-utils
Utilites and CLI for MAX and Telegram messengers.
Installation
Install with pip:
pip install messenger-utils
Install with uv:
uv add messenger-utils
CLI
Command-line tool to control Telegram and MAX messengers bots.
The functionality includes:
- Get information about the bot.
- Get & set webhooks.
- Get & set available commands list for bot.
- Send messages.
Usage:
# Via uv
uv run -m messenger_utils <command> [args]
# Via pure python
python -m messenger_utils <command> [args]
Use --help option to get info about commands available:
uv run -m messenger_utils --help
Environment
The CLI requires the following environment variables to be set (either temporary or system-wide):
MESSENGER_UTILS_MAX_BOT_TOKEN: for interacting with MAX bot.MESSENGER_UTILS_TG_BOT_TOKEN: for interacting with Telegram bot.
Library
The messenger_utils package provide classes with the functionality for sending and parsing received messages from MAX and Telegram Bot APIs.
Usage
Import the library components needed:
# Import the whole lib
import messenger_utils
# Or just modules and classes needed
from messenger_utils.max import MaxReceiver, MaxSender, MaxKeyboard
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file messenger_utils-2.1.3.tar.gz.
File metadata
- Download URL: messenger_utils-2.1.3.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94ae0be364506c358aa163b04917f79d31f3580bde013eefdeb211de05eeea26
|
|
| MD5 |
99bfbb72602abe6145339985344786f4
|
|
| BLAKE2b-256 |
f9d4af3d4829cca2377450790928c77a745f263f91c465f0d48904e8d440ecae
|
File details
Details for the file messenger_utils-2.1.3-py3-none-any.whl.
File metadata
- Download URL: messenger_utils-2.1.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44702f61ce3e68cb0665b9cb1f6e838f274140ae30c327329f3a54abac9c18a9
|
|
| MD5 |
2f2e0a7ef62106987c419246d55272f3
|
|
| BLAKE2b-256 |
b906483079e91c412791d91dc33f22273ee9679e6a22130b61e89da7e50fd770
|