Compare commits

...
1 Commits
Author SHA1 Message Date
lukaszraczyloandGitHub 898c19609c ci(regen): run the API regeneration every day, not once a week (#54)
Telegram can change the Bot API at any time; a daily run keeps the
generated API at most a day behind.
2026-11-29 10:32:41 +00:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: regen
on:
schedule:
- cron: "0 6 * * 1" # Monday 06:00 UTC
- cron: "0 6 * * *" # Every day 06:00 UTC
workflow_dispatch: {}
permissions:
+1 -1
View File
@@ -347,7 +347,7 @@ make snapshot # grab the latest HTML from core.telegram.org
make regen # scrape → audit → emit Go → run tests → regenerate docs
```
The audit tool checks for `any`-typed escapes, surprise `bool` returns, and signature drift. CI runs it on every PR, and a weekly workflow opens an auto-PR with regenerated code so a new Bot API version never sits longer than a week.
The audit tool checks for `any`-typed escapes, surprise `bool` returns, and signature drift. CI runs it on every PR, and a daily workflow opens an auto-PR with regenerated code so a new Bot API version never sits longer than a day.
If something in Telegram's docs trips up the scraper, add an override to `internal/spec/overrides.json`. The audit will tell you what to put there.
+1 -1
View File
@@ -228,7 +228,7 @@
</div>
<div>
<h3 class="font-semibold text-gray-900 dark:text-gray-100 mb-1">Generated from the live docs</h3>
<p class="text-sm text-gray-600 dark:text-gray-400">IR + emitter pipeline runs weekly; a PR opens automatically for any Telegram-side change.</p>
<p class="text-sm text-gray-600 dark:text-gray-400">IR + emitter pipeline runs daily; a PR opens automatically for any Telegram-side change.</p>
</div>
</div>
</div>