Skip to content

chore(deps): Bump gotd/td v0.107.0 → v0.158.0#33

Merged
cuiko merged 1 commit into
vika2603:mainfrom
cuiko:chore/bump-gotd
Jun 19, 2026
Merged

chore(deps): Bump gotd/td v0.107.0 → v0.158.0#33
cuiko merged 1 commit into
vika2603:mainfrom
cuiko:chore/bump-gotd

Conversation

@cuiko

@cuiko cuiko commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Catches gotd/td up 51 releases — v0.107.0 → v0.158.0 (TL layer 185 → 227) — for bug/security fixes and to track current Telegram. Migrates the breaking changes:

  • Logger: telegram.Options.Logger moved from *zap.Logger to gotd's own log.Logger interface. Added a small zap→gotd/log adapter (internal/telegram/session/gotdlog.go).
  • Forum topics: RPCs moved from channels.* to messages.* and now take Peer instead of Channel. messages.getForumTopics dropped the server-side search param, so chat topic list --search filters by title client-side (single page — matches existing no-pagination behavior).
  • Signatures: channels.toggleSignatures field EnabledSignaturesEnabled.
  • Polls: Poll.Answers is now []PollAnswerClass; type-assert to *tg.PollAnswer.

Transitive deps (x/crypto, x/net, otel, zap, websocket, …) bumped via go mod tidy.

Notable behavior change

chat topic list --search filters client-side now (API removed the param). Same single-page scope as before — no practical regression.

Test plan

  • go build ./..., go vet ./..., golangci-lint run (0 issues), go test ./... (95 pkgs, all green)
  • Full live smoke against Telegram on the new library, both direct (--no-daemon) and daemon-IPC paths (installed the new build as the daemon):
    • read: me, auth list/status, session list, config show/path, chat list/info(+--full), inbox, read, msg list, digest, resolve, search msg/chat, member list, invite list, contact list(+--blocked), sticker/gif list, schedule-list, msg link, daemon status/logs
    • messages: send (text/--file/--sticker/--gif), edit, react, forward, download, reply, poll, vote, delete, schedule send/list/cancel
    • chat: mute/unmute, archive/unarchive, pin/unpin, mark-read, edit(+restore), photo set/clear
    • admin/member: invite create/revoke/delete, join, admin promote(--rights)/demote, member set-perms/unset-perms, ban/unban, leave, join list/approve/deny
    • create/channel: chat create/delete, channel create/edit/delete, channel photo set/clear, discussion candidates/link/unlink
    • forum: --forum/--no-forum, topic create/list/--search/info/edit(close/reopen/title)/mute/unmute/read/pin/unpin/delete
    • contact/profile: block/unblock, profile set-name/bio/status
    • streaming: watch (captured a live update)
    • FLOOD_WAIT middleware confirmed (friendly "flood wait: N seconds")
    • No regressions found; all transient failures were operator flag mistakes or Telegram constraints. (Not exercised by design: account-destructive ops — auth login/logout, session revoke, password, etc.)

Catch the MTProto library up 51 releases (TL layer 185 -> 227) and migrate the
breaking changes:

- telegram.Options.Logger moved from *zap.Logger to gotd's own log.Logger
  interface; add a small zap adapter (session/gotdlog.go).
- Forum-topic RPCs moved from channels.* to the messages.* namespace and now
  take Peer instead of Channel. messages.getForumTopics dropped the
  server-side search param, so `chat topic list --search` now filters by title
  client-side (single page, matching the existing no-pagination behavior).
- channels.toggleSignatures: Enabled -> SignaturesEnabled.
- Poll.Answers is now []PollAnswerClass; type-assert to *tg.PollAnswer.

Verified: build / vet / golangci-lint / go test all green, plus a live smoke
on the new library (connect, chat list, forum topic create/list/search/info/
delete, signatures toggle, poll send+read).
@cuiko
cuiko merged commit 8508d24 into vika2603:main Jun 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant