Web2Comics

Web2Comic Bot Developer Guide

Cross references:

Scope note:

Public Command Catalog (Implementation Scope)

Architecture

Processing model:

Input Classification

Input from message.text, media attachments, or message.caption is classified as:

Source-specific flows extract structured text before generation:

Generation Pipeline

  1. Resolve effective per-user config
  2. Apply secrets (runtime/shared/env)
  3. Build storyboard with text provider
  4. Optional consistency flow (if enabled and supported): generate one summary reference image
  5. Generate panel images (each prompt includes Background + Image description; Story title line removed; references summary style when available)
  6. Stream panel sends to Telegram as each panel becomes ready
  7. Send final completion summary

Important behavior:

Command System

Primary command handling is in handleCommand.

Notable UX behavior:

Blacklist Model

Blacklist is persistent in config state:

Ban checks run before allowlist checks during message processing.

Security

Storage

Testing

Primary suites:

Secret checks before deploy/tests:

Deployment

Use:

npm run bot:deploy:auto -- --target render --env staging --branch stage1 --env-only

See: