Skip to main content

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.

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.45.0.tar.gz (27.1 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.45.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for meshagent_telegram-0.45.0.tar.gz
Algorithm Hash digest
SHA256 b819376fe3271ad25b5c861902e94898e6b3de0f1d68e91ded92d06ac2e99768
MD5 460c9624cbc09df037d17a4e777ae500
BLAKE2b-256 1ec4e49b3289177134a4c700224c9735f3435a889c15736cd7f321795bdb0ffd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meshagent_telegram-0.45.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e85d11627d6206dff0b821691565b6754fb415e489aa670e2d29ccd759e48bc
MD5 c98c362b12103bdded80769a742a5910
BLAKE2b-256 b7b9735b5cb9675c160d3f3d1522f9807b6e8678516d06b1e5fd83b40f008bb3

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 Sentry Error logging StatusPage Status page