LemonChannels. Adapters. Telegram. Transport. UpdateProcessor
(lemon_channels v0.1.0)
View Source
Focused Telegram inbound decision helpers used by the transport pipeline.
This module stays responsible for authorization, deduplication, known-target indexing, reply-to preservation, and router-facing inbound enrichment without performing Telegram API side effects itself.
Summary
Functions
Authorization guard for Telegram callback queries.
Emit the standard Telegram inbound drop log when enabled.
Index chat metadata from an update for known-target tracking.
Enrich an inbound with update_id, account_id, and reply-to text.
Return the authorized inbound routing decision without performing side effects.
Functions
Authorization guard for Telegram callback queries.
Emit the standard Telegram inbound drop log when enabled.
Index chat metadata from an update for known-target tracking.
This allows the system to maintain a registry of chats/topics that have interacted with the bot.
Enrich an inbound with update_id, account_id, and reply-to text.
@spec route_authorized_inbound_action(map(), map()) :: {:ok, map()} | {:drop, term(), map()} | {:seen, map()}
Return the authorized inbound routing decision without performing side effects.