feat(messaging): run Telegram as an archipelago channel extension (#1399)

The bundled internal/channels/telegram package (17 files) is deleted; the
channel now ships as archipelago/channels/telegram, launched by archiemessaging
through the existing channel-extension machinery. An existing [chat.telegram]
config enables it with the same keys: the token stays a secret reference
(token_ref) the host resolves, allowed_user_ids and show_tool_calls map onto
extension settings. Per-org bots compose the same extension per org from the
org's credential binding. Reload support is now derived from a channels.Reloader
interface instead of a *telegram.Gateway assertion. The five host-only seams
(/update, release announcements, running versions, in-place show_tool_calls,
reload) are dropped from the channel and need a contract home or deletion.
This commit is contained in:
sam committed 2026-10-31 15:30:27 +11:00
1 parent d03062cad8
commit 86501fa1d4
10 files changed
+2115 -276

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ require (
github.com/emersion/go-msgauth v0.7.0
github.com/emersion/go-sasl v0.0.0-20241020182733-b788ff22d5a6
github.com/emersion/go-smtp v0.25.0
github.com/go-telegram/bot v1.27.0
github.com/gofri/go-github-ratelimit/v2 v2.0.2
github.com/google/go-github/v78 v78.0.0
github.com/hashicorp/go-plugin v1.8.0