Jido.Chat.Telegram.Adapter (Jido Chat Telegram v1.1.0)

Copy Markdown View Source

Telegram Jido.Chat.Adapter implementation using ExGram.

Summary

Functions

Deletes the Telegram webhook ingress subscription for a messaging bridge.

Ensures Telegram webhook ingress for a messaging bridge.

Returns Telegram extension capability statuses for features outside core adapter contract.

Lists the Telegram webhook ingress subscription for a messaging bridge.

Functions

delete_ingress_subscription(bridge_id, subscription_id, opts \\ [])

@spec delete_ingress_subscription(String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, term()}

Deletes the Telegram webhook ingress subscription for a messaging bridge.

ensure_ingress_subscription(bridge_id, opts \\ [])

@spec ensure_ingress_subscription(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Ensures Telegram webhook ingress for a messaging bridge.

Telegram supports one webhook per bot token, so the subscription id is deterministic for the bridge and maps to the bot's current webhook.

extension_capabilities()

@spec extension_capabilities() :: map()

Returns Telegram extension capability statuses for features outside core adapter contract.

list_ingress_subscriptions(bridge_id, opts \\ [])

@spec list_ingress_subscriptions(
  String.t(),
  keyword()
) :: {:ok, [map()]} | {:error, term()}

Lists the Telegram webhook ingress subscription for a messaging bridge.