chore(deps): Bump gotd/td v0.107.0 → v0.158.0#33
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Catches
gotd/tdup 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:telegram.Options.Loggermoved from*zap.Loggerto gotd's ownlog.Loggerinterface. Added a small zap→gotd/log adapter (internal/telegram/session/gotdlog.go).channels.*tomessages.*and now takePeerinstead ofChannel.messages.getForumTopicsdropped the server-side search param, sochat topic list --searchfilters by title client-side (single page — matches existing no-pagination behavior).channels.toggleSignaturesfieldEnabled→SignaturesEnabled.Poll.Answersis now[]PollAnswerClass; type-assert to*tg.PollAnswer.Transitive deps (
x/crypto,x/net, otel, zap, websocket, …) bumped viago mod tidy.Notable behavior change
chat topic list --searchfilters 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)--no-daemon) and daemon-IPC paths (installed the new build as the daemon):--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--file/--sticker/--gif), edit, react, forward, download, reply, poll, vote, delete, schedule send/list/cancel--rights)/demote, member set-perms/unset-perms, ban/unban, leave, join list/approve/deny--forum/--no-forum, topic create/list/--search/info/edit(close/reopen/title)/mute/unmute/read/pin/unpin/deletewatch(captured a live update)