Cookbook#
The long recipe, with CLI output captured from a real bot (“Learning diary”), is in the repo. The narrative of that file is Russian; the commands are the platform’s and do not depend on the prose language:
What it walks through:
- Scaffold and login (two kinds of token)
- Message handler and a database table
- Deploy and migrations (
--dry-run,--safe,--yes) - Inline buttons (
callback_query) - Mini App:
endpoints/, static files,tgcloud.jsonc, thendeployso the build is fresh - Debugging a silent bot (
webhook_status, thenwebhook_sync)
Pitfalls covered there and in tgcloud://docs/*: relative imports with .js,
no foreign keys, drops only through .deprecated, push does not build and does
not migrate, a new handler can leave the webhook out of sync.