Commit Graph
100 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
lukaszraczyloandGitHub cec37b7b95 chore(api): regenerate for BotFullInfo and optional chat_id (#53)
* chore(api): regenerate for BotFullInfo and optional chat_id

Telegram split BotFullInfo out of User and getMe now returns it, and
chat_id is optional in the methods that accept an ephemeral callback
reply. Regenerate the API, make MeCache cache BotFullInfo, and wrap the
now-optional chat_id arguments in the examples. This is the output of
make regen, so the weekly regen job no longer fails its api test.

* chore(api): pin the 2026-11-29 API snapshot the regen used

codegen-clean regenerates from testdata/html/latest.html, so the new
BotFullInfo output needs a matching snapshot.
v0.11.77
2026-11-29 04:42:42 +00:00
github-actions[bot]andGitHub 2fa1494d57 chore(deps): update module github.com/go-telegram/bot to v1.31.0
Automated dependency update. All tests passed.
v0.11.75
2026-11-29 03:15:10 +00:00
github-actions[bot]andGitHub b9ee0ead7c chore(deps): update module github.com/valyala/fasthttp to v1.80.0
Automated dependency update. All tests passed.
v0.11.73
2026-11-26 03:16:11 +00:00
github-actions[bot]andGitHub 62c34d40a8 chore(deps): update module github.com/mymmrac/telego to v1.14.0
Automated dependency update. All tests passed.
v0.11.71
2026-11-25 03:15:40 +00:00
tozuo-home-cluster-eso[bot]GitHubtozuo-home-cluster-eso[bot] <287217661+tozuo-home-cluster-eso[bot]@users.noreply.github.com>
5f40e766d1 fix: repair failing ci signal (#49)
The agent did not write a commit message.

Co-authored-by: tozuo-home-cluster-eso[bot] <287217661+tozuo-home-cluster-eso[bot]@users.noreply.github.com>
v0.11.69
2026-11-23 13:07:44 +00:00
github-actions[bot]andGitHub 43fff0f994 chore(deps): update module github.com/klauspost/compress to v1.20.5
Automated dependency update. All tests passed.
v0.11.67
2026-11-23 03:18:05 +00:00
github-actions[bot]andGitHub 760a19d698 chore(deps): update module github.com/go-telegram/bot to v1.30.0
Automated dependency update. All tests passed.
v0.11.65
2026-11-22 03:14:47 +00:00
github-actions[bot]andGitHub bd9baca716 chore(deps): update module gopkg.in/telebot.v3 to v4
Automated dependency update. All tests passed.
v0.11.63
2026-11-20 03:17:17 +00:00
github-actions[bot]andGitHub 5a282c2f70 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-20 03:16:34 +00:00
github-actions[bot]andGitHub e1a3a9a5dc chore(deps): update module github.com/valyala/fasthttp to v1.79.0
Automated dependency update. All tests passed.
v0.11.59
2026-11-19 03:16:20 +00:00
github-actions[bot]andGitHub 9e143be983 chore(deps): update module github.com/mymmrac/telego to v1.13.0
Automated dependency update. All tests passed.
v0.11.57
2026-11-15 03:15:03 +00:00
github-actions[bot]andGitHub ff798f5644 chore(deps): update module github.com/niconex/echotron/v3 to v3.47.0
Automated dependency update. All tests passed.
v0.11.55
2026-11-13 03:15:12 +00:00
github-actions[bot]andGitHub c31aedc926 chore(deps): update dependencies
Automated dependency update. All tests passed.
v0.11.53
2026-11-12 03:16:59 +00:00
github-actions[bot]andGitHub e88fd01477 chore(deps): update dependencies
Automated dependency update. All tests passed.
v0.11.51
2026-11-10 03:15:43 +00:00
github-actions[bot]andGitHub d5b50d5146 chore(deps): update module github.com/klauspost/cpuid/v2 to v2.4.2
Automated dependency update. All tests passed.
v0.11.49
2026-11-06 03:15:35 +00:00
github-actions[bot]andGitHub 289c9eb4ac chore(deps): update module go.yaml.in/yaml/v3 to v3.0.6
Automated dependency update. All tests passed.
v0.11.47
2026-11-03 03:15:44 +00:00
github-actions[bot]andGitHub 96df392c78 chore(deps): update module github.com/goccy/go-json to v0.12.0
Automated dependency update. All tests passed.
v0.11.45
2026-11-01 03:17:36 +00:00
github-actions[bot]andGitHub d82b89a7d2 chore(deps): update dependencies
Automated dependency update. All tests passed.
v0.11.43
2026-10-30 03:17:59 +00:00
github-actions[bot]andGitHub cdf449f8e0 chore(deps): update module github.com/valyala/fasthttp to v1.77.0
Automated dependency update. All tests passed.
v0.11.41
2026-10-29 03:18:32 +00:00
github-actions[bot]andGitHub 51d695aa22 chore(deps): update module github.com/molecule-man/go-brrr to v1.3.1
Automated dependency update. All tests passed.
v0.11.39
2026-10-27 03:23:39 +00:00
github-actions[bot]andGitHub 8eb48748aa chore(deps): update module github.com/bytedance/sonic/loader to v0.5.3
Automated dependency update. All tests passed.
v0.11.37
2026-10-24 03:20:27 +00:00
github-actions[bot]andGitHub 285ba75ef2 chore(deps): update module github.com/valyala/fasthttp to v1.76.0
Automated dependency update. All tests passed.
v0.11.35
2026-10-21 03:23:56 +00:00
github-actions[bot]andGitHub 8b0eb3d91d chore(deps): update module github.com/klauspost/cpuid/v2 to v2.4.1
Automated dependency update. All tests passed.
v0.11.33
2026-10-19 03:23:55 +00:00
github-actions[bot]andGitHub 759f70f3c9 chore(deps): update module github.com/stretchr/objx to v0.8.0
Automated dependency update. All tests passed.
v0.11.31
2026-10-17 03:21:04 +00:00
github-actions[bot]andGitHub b7eb4fb523 chore(deps): update module github.com/stretchr/objx to v0.7.0
Automated dependency update. All tests passed.
v0.11.29
2026-10-16 03:23:15 +00:00
github-actions[bot]andGitHub 517c9ea1a4 chore(deps): update module github.com/klauspost/compress to v1.20.3
Automated dependency update. All tests passed.
v0.11.27
2026-10-15 03:22:47 +00:00
github-actions[bot]andGitHub e7c56a27ea chore(deps): update module github.com/molecule-man/go-brrr to v1.3.0
Automated dependency update. All tests passed.
v0.11.25
2026-10-14 03:23:13 +00:00
github-actions[bot]andGitHub 49cb196f88 chore(deps): update module golang.org/x/net to v0.61.0
Automated dependency update. All tests passed.
v0.11.23
2026-10-12 03:37:23 +00:00
github-actions[bot]andGitHub 6a8f2cb3a4 chore(deps): update module golang.org/x/net to v0.60.0
Automated dependency update. All tests passed.
v0.11.21
2026-10-11 03:28:14 +00:00
github-actions[bot]andGitHub 2276ce81ed chore(deps): update dependencies
Automated dependency update. All tests passed.
v0.11.19
2026-10-10 03:26:21 +00:00
github-actions[bot]andGitHub ae45e17f43 chore(deps): update module github.com/valyala/fasthttp to v1.75.0
Automated dependency update. All tests passed.
v0.11.17
2026-10-08 03:27:17 +00:00
github-actions[bot]andGitHub 8cb03ef0e9 chore(deps): update module github.com/molecule-man/go-brrr to v1.2.0
Automated dependency update. All tests passed.
v0.11.15
2026-10-06 03:24:29 +00:00
lukaszraczylo d535029beb fix(ci): read regen Go version from go.mod 2026-10-05 10:31:05 +01:00
github-actions[bot]andGitHub 23cca1df8d chore(deps): update dependencies
Automated dependency update. All tests passed.
v0.11.11
2026-10-04 04:23:05 +00:00
lukaszraczylo 131bbca0ed ci(deps): update dependencies with Renovate [skip ci] 2026-10-03 18:44:32 +01:00
ba6f76f59f Update go.mod and go.sum (#20)
Co-authored-by: lukaszraczylo <[email protected]>
2026-10-03 03:29:26 +00:00
lukaszraczyloandGitHub 93ebf41a3c ci: use the shared pull request, release and autoupdate workflows (#19)
* ci(workflows): migrate to shared go-pr and go-release workflows

Replace the generic vet, staticcheck, govulncheck, gosec, test and release jobs with the shared go-pr and go-release workflows.
Keep the codegen-clean and audit jobs in ci.yml. Add an examples build job and the ci-success aggregator there.
Add autoupdate.yaml from the shared go-autoupdate workflow.
The release job now runs only on Go source changes and on manual dispatch.
The dry-run input and the Bot API note in the tag message no longer exist.

* ci(release): gate release on repo checks and export Bot API version

Move the codegen-clean, audit and examples jobs into the reusable checks.yml workflow. The ci.yml and release.yml workflows both call it.
The release job now needs the checks job. A failed or cancelled check blocks the release.
Add workflow-prepare.sh. It appends BOT_API_VERSION to GITHUB_ENV so the GoReleaser header shows the Bot API version.
The script does nothing when GITHUB_ENV is unset.

* ci(regen): name release.yml in the merge step comments

The release now runs from release.yml. The comments still named ci.yml as the workflow that cuts the release.
v0.11.5
2026-10-02 04:42:00 +01:00
lukaszraczylo 53afd9890f ci: pin govulncheck to v1.7.0
govulncheck@latest resolves to v1.8.0, which declares go 1.26.0 in its
module file. Every job in this workflow pins go-version 1.25.x, so the
install step fails before any scanning runs, which fails ci-success and
skips the release job.

v1.7.0 declares go 1.25.0 and installs on the pinned toolchain. This also
matches the convention used for staticcheck, which is already pinned to
an exact version. Pinning the binary does not freeze the vulnerability
database, which govulncheck fetches at run time.

Claude-Session: https://claude.ai/code/session_01Fu2wXqGUrfVBi5aLafKk8U
v0.11.3
2026-09-15 11:34:33 +01:00
lukaszraczylo d666cda3b1 feat(genapi): derive discriminators and decode RichText alternates
The generator gated all union decoder emission behind knownDiscriminators, a
hand-curated map of 13 entries. Any sealed union absent from that map received
no decoder, so decoding must fail. Bot API v10 added RichBlock and RichText,
which were absent. Roughly 8.6 percent of Telegram updates failed with HTTP 400.

The generator now derives discriminators from the specification instead of a
fixed list. A gate check fails the build when a union resolves no discriminator.
Eleven unions gain decoders that never had one: BotCommandScope, InputMedia,
InputPaidMedia, InputPollMedia, InputPollOptionMedia, InputProfilePhoto,
InputRichBlock, InputStoryContent, PassportElementError, RichBlock and RichText.

RichText can also appear as a bare string or an array of RichText. The scraper
now extracts these alternate shapes into the intermediate representation. The
emitter adds RichTextPlain and RichTextSequence. The decoder dispatches on the
first JSON byte before it reads any discriminator.

Unions without alternates must regenerate byte for byte. The golden test proves
this.

Claude-Session: https://claude.ai/code/session_01Fu2wXqGUrfVBi5aLafKk8U
2026-09-15 10:59:48 +01:00
lukaszraczylo fa84f08b25 ci(regen): stop the weekly no-op update PR
The Telegram page ends with a "page generated in NN.NNms" comment that
changes on every fetch. Change detection saw it, so the run dispatched after
the codegen fix opened and merged a PR whose only content was that comment.
With the merge step in place, that becomes a pointless release every week.

Strip the comment on capture, and gate change detection on the generated
surface instead of testdata/html/, because the snapshot file name and the
latest.html symlink change every run by design. A fresh fetch now matches the
committed snapshot byte for byte while the API is unchanged.
2026-09-15 10:55:38 +01:00
54790f3e5b chore(api): regenerate from Telegram Bot API v10.3 (#18)
Co-authored-by: lukaszraczylo <[email protected]>
2026-09-14 06:40:10 +00:00
ab5f2c5700 chore(api): regenerate from Telegram Bot API v10.3 (#17)
Co-authored-by: lukaszraczylo <[email protected]>
2026-09-07 06:39:21 +00:00
926d51881d chore(api): regenerate from Telegram Bot API v10.3 (#16)
Co-authored-by: lukaszraczylo <[email protected]>
2026-08-31 06:39:17 +00:00
4511c823a3 chore(api): regenerate from Telegram Bot API v10.2 (#15)
Co-authored-by: lukaszraczylo <[email protected]>
2026-08-24 06:21:30 +00:00
7c5aca3bf8 chore(api): regenerate from Telegram Bot API v10.2 (#14)
Co-authored-by: lukaszraczylo <[email protected]>
2026-08-17 06:19:14 +00:00
4e6382ceeb chore(api): regenerate from Telegram Bot API v10.2 (#13)
Co-authored-by: lukaszraczylo <[email protected]>
2026-08-10 07:52:19 +00:00
b6881461fd chore(api): regenerate from Telegram Bot API v10.2 (#12)
Co-authored-by: lukaszraczylo <[email protected]>
2026-08-03 09:57:22 +00:00
6612c24dfc chore(api): regenerate from Telegram Bot API v10.2 (#11)
Co-authored-by: lukaszraczylo <[email protected]>
2026-07-27 10:02:19 +00:00
3620f8ce1e chore(api): regenerate from Telegram Bot API v10.2 (#10)
Co-authored-by: lukaszraczylo <[email protected]>
2026-07-21 21:56:30 +00:00