telegram-bot::__on-approval-gate-worker
Internal: track approval-gate worker add/remove.
- operationstring
- sourceunknown
- stagestring
- workerstring
- okbooleanrequired
Telegram bridge to the harness stack — polling or webhook ingress, live message edits, approvals, and configurable verbosity.
exact versions are immutable; binary and bundle artifacts are digest-pinned.
Internal: track approval-gate worker add/remove.
Send a message to the Telegram chat bound to a session. Use this to reach the user out-of-band (e.g. a scheduled reminder or when a long task finishes); the message is delivered only to that session's chat.
Optional Telegram `parse_mode` (`MarkdownV2` / `HTML`). When set, `text` is sent verbatim with that mode instead of being auto-formatted.
The session whose chat receives the message. Must be a session this bot created (e.g. the `session_id` from the channel-context prompt).
The message text. Markdown is auto-formatted for Telegram unless `parse_mode` is set explicitly. Long text is split across messages.
Telegram message ids of the (possibly chunked) messages sent.
Internal: reload telegram-bot configuration from the authoritative store on change.
Create a Telegram message for each new assistant or function_result entry.
Parent entry in the session chain (authoritative append order).
Append time in ms; used as the per-entry ordering key.
Stream assistant edits into Telegram, throttled by revision.
Mutation time in ms; refines the per-entry ordering key (min wins).
Send an inline approval keyboard when a function call is held.
Clear the approval prompt when a held call is resolved.
Observe session status changes.
Finalize streaming, drain FIFO queue, and post turn outcome toasts.
`false` while the session still owns an armed wake: the run continues and a later turn carries the real outcome. Missing (legacy harness) → terminal.
Register the Telegram webhook URL from configuration.
Receive Telegram updates; route commands, messages, and callbacks.