Skip to main content

Telegram channel support for MeshAgent

Project description

MeshAgent Telegram

Telegram account channel support for MeshAgent process agents.

This package exports TelegramChannel and create_channel(...) for use with a MeshAgent process channel shim.

Set TELEGRAM_API_ID, TELEGRAM_API_HASH, and TELEGRAM_BOT_TOKEN before starting the channel. The bot token comes from BotFather; users must start the bot or add it to a chat before Telegram will deliver messages to the channel.

Set MESHAGENT_TELEGRAM_ALLOWED_CHAT_IDS to a comma-separated chat ID allowlist to process and respond only in specific Telegram chats. Use Telethon's marked chat IDs, such as positive private chat IDs, negative group IDs, and -100... channel or supergroup IDs. Leave it empty to allow all chats.

Inbound Telegram media is downloaded with Telethon, uploaded to room storage under MESHAGENT_TELEGRAM_MEDIA_STORAGE_PREFIX, and passed to the agent as AgentFileContent. MESHAGENT_TELEGRAM_INBOUND_MEDIA_MAX_BYTES limits how large an inbound media file the channel will download. Agent file attachments are sent back through Telethon send_file; HTTP(S) URLs are sent as external media, and room:///... URLs are downloaded from room storage before upload.

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

meshagent_telegram-0.44.25.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

meshagent_telegram-0.44.25-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file meshagent_telegram-0.44.25.tar.gz.

File metadata

  • Download URL: meshagent_telegram-0.44.25.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for meshagent_telegram-0.44.25.tar.gz
Algorithm Hash digest
SHA256 b3fc18c1993a037c7576766882594632ea8c641e78bb3a8aaed9feecf87880f7
MD5 88eedac9571b2fcfd3e604bc5cfd27ea
BLAKE2b-256 ddb7bdc03dac0c3cb13d4aa31a6fb420d492b7cdc1591f7ab510aadf8696e28e

See more details on using hashes here.

File details

Details for the file meshagent_telegram-0.44.25-py3-none-any.whl.

File metadata

File hashes

Hashes for meshagent_telegram-0.44.25-py3-none-any.whl
Algorithm Hash digest
SHA256 b34f80280a1ac1298a94f7d0a81ef8d150f1d04c1a30e70aa2cba894ca5fdc30
MD5 091e71ff4f918403ec60e42d19739e1c
BLAKE2b-256 f28bff6497ee964044cfdb76fb464682ad199dd73b6d46a39e864d05e15ef33e

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