mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
Mirrors the Slack precedent (register_slack_action_handler): plugins queue a factory at register() time; the Telegram adapter invokes each factory with (application, adapter) at connect() time, before the core handlers register, so pattern-scoped plugin handlers take precedence for their own updates while everything else falls through unchanged. Factories are isolated — a raising plugin cannot prevent Telegram from connecting. Unblocks standalone plugins that need PTB update types the core adapter doesn't route (Telegram Business API secretary bots, custom callback prefixes, chat-member events) without touching core files. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| adapter.py | ||
| plugin.yaml | ||
| telegram_ids.py | ||
| telegram_network.py | ||