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.3.1.tar.gz (9.8 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.3.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: messenger_utils-2.3.1.tar.gz
  • Upload date:
  • Size: 9.8 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.3.1.tar.gz
Algorithm Hash digest
SHA256 23e6229cd0726dbb65515babb1381979fc7809e8003bc1ceef7212ed275fae66
MD5 2882dc20096f708a02a801d418ad24b6
BLAKE2b-256 60e6c4ad515ba823960a7e696a105e9ba5fadbb44d3133adad058c1d495de94d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: messenger_utils-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c80f86d253147fa4a1590d3b9b7e0199cddc7388947d5e1c6040af987c4e227
MD5 f881c97baf2a6cb91c92ebf2d444fb8d
BLAKE2b-256 7a2991bdf0788a4e1fd02a43b1f181aa04f1a350aff2871bd442b79e094eb320

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