Skip to main content
Inbound is delivered through Fusor: createClient returns a fusor(...) client whose verify checks the Telegram webhook secret token and parses the Update (pure parsing — no client). The messages handler reads config from its ctx and builds a photon client inline only to download media bytes. Outbound (send) also builds a photon client inline. Both go through @photon-ai/telegram-ts. Drop telegram.config({...}) into Spectrum({ providers: [...] }). In cloud mode (projectConfig present), createClient also self-registers the bot’s webhook against the Fusor edge for the project slug — see ensureWebhook. Without a slug (local/direct mode) registration is skipped.