One Bitcoin Agent, Many Channels: Telegram, Web Chat, CLI, and Beyond
A customer might ask for a service through Telegram, a website chat widget, a CLI, or a mobile application. The proposed THAMER.AI architecture treats those as interchangeable communication channels above one deterministic Bitcoin payment workflow.
Normalize the request
A Telegram message and a web form should resolve to the same structured intent: service identifier, customer reference, requested option, and a request ID. An optional GPT or Claude adapter can interpret natural language, but the Go executor validates the request against a real catalog and approved prices.
The channel adapter never directly declares a payment successful. It displays a server-issued invoice and receives status updates from the local agent.
A shared payment lifecycle
REQUEST → VALIDATE → INVOICE → RECEIVE ADDRESS/QR → WATCH SEEN → RECEIPT → DEVELOPER ACTION.
Each order needs a unique identifier, a traceable invoice-to-address mapping, an expected amount, and idempotent event processing. The WATCH SEEN event is a fast observation, not irreversible settlement. A developer may choose immediate digital fulfillment at seen, with explicit acceptance of replacement or eviction risk. TXID STATUS remains available for later verification or disputes without becoming a universal prerequisite.
Telegram is an adapter, not a wallet
The bot token is stored locally by the operator. The bot sends structured requests to the private agent host; the host handles invoices and payment matching. Authenticate inbound webhooks, rate-limit public requests, and prevent a Telegram user from accessing another customer's order.
The practical advantage
Developers implement the service once, then add more channel adapters as needed. A new front end should not require a new wallet implementation or a separate payment state machine.
Status: Multi-channel architecture proposal. No claim is made that a Telegram integration has been deployed.
