Skip to main content

Utilites and CLI for MAX and Telegram messengers.

Project description

messenger-utils

Python Version Package Version

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

messenger_utils-2.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

messenger_utils-2.2.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file messenger_utils-2.2.0.tar.gz.

File metadata

  • Download URL: messenger_utils-2.2.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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

Hashes for messenger_utils-2.2.0.tar.gz
Algorithm Hash digest
SHA256 fb0d19847dfdab2f7559e0a8ceab7d7fce75796dab89564baf37e1171a4c8ad3
MD5 80ea0ef99f9609f97d0cab587957c580
BLAKE2b-256 08985c9b748654cbdc31a2a6ef67e6350c3984b6f2efa2b8fb2d1955ed8a369a

See more details on using hashes here.

File details

Details for the file messenger_utils-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: messenger_utils-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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

Hashes for messenger_utils-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d49bb9323769aa7fb5e3158c6cda32121f5f268e218b5fb4eabc9a176fb24b6f
MD5 e7761734c8e174afc7f4f9275f5fd895
BLAKE2b-256 86bcdb75c3c30cc5e76005600464c965bb180138dfae84ee06a05fc30630b1b4

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