Skip to content

chore(deps): bump github.com/gotd/td from 0.165.0 to 0.166.0 - #303

Merged
ernado merged 1 commit into
mainfrom
dependabot/go_modules/github.com/gotd/td-0.166.0
Nov 16, 2026
Merged

ernado merged 1 commit into
mainfrom
dependabot/go_modules/github.com/gotd/td-0.166.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/gotd/td from 0.165.0 to 0.166.0.

Release notes

Sourced from github.com/gotd/td's releases.

v0.166.0

Adds telegram/user, a bootstrap for user accounts next to telegram/bot, and updates the API docs and error constants from getdoc v0.54.0.

Highlights

telegram/user (#1977)

  • user.Start / user.New connect, sign in only if the stored session isn't authorized, and start the updates and peer managers. Session, update state and access hashes of channels and users live in Options.Dir, so updates sent while stopped are delivered after a restart and known channels need no extra getDifference.
  • Sign in with user.Phone (code + 2FA via auth.NewFlow), user.QR (login token, imported on another DC) or user.AuthFunc. With Auth == nil, Start returns ErrNotAuthorized and sends nothing. A bot session or another account than Options.UserID fails with ErrSessionMismatch.
  • FLOOD_WAIT on sign in is waited out (up to MaxLoginWait) only where it can't send a second code: before the code was requested for Phone, always for QR, never for AuthFunc.
  • New example examples/userbot-echo. telegram/bot now shares the internals (telegram/internal/bootstrap); its API and behaviour are unchanged.
  • Docs: User authentication.

API docs and errors (#1979)

  • getdoc v0.54.0: refreshed doc comments and 42 new error constants (e.g. ErrURLExpired, ErrTopicNotModified, ErrBotCreateLimitExceeded).

Upgrading

Eight error constants that Telegram no longer documents are removed: ErrAnonymousReactionsDisabled, ErrEncryptionDeclineAdminFailed, ErrGroupcallAddParticipantsFailed, ErrNeedDocInvalid, ErrParticipantCallFailed, ErrPasskeyAuthRestart, ErrSavedPeerInvalid, ErrVolumeMoveInvalid. Use the string instead, e.g. tgerr.Is(err, "SAVED_PEER_INVALID").

All changes

Full Changelog: gotd/td@v0.165.1...v0.166.0

v0.165.1

Fix for clients whose local clock runs ahead; no other changes since v0.165.0.

Fixes

  • mtproto: start a new session after msg_id too high (#1976). With the local clock ahead of the server (seen with +10 min), v0.165.0 corrected its time offset after bad_msg_notification 17 but kept the same session, whose message ids must stay increasing, so every request was refused again and the client never became ready (initConnection failed in a loop). Like TDLib, gotd now resets the message id generator, starts a new session and resends the request. Verified on production with the clock ±10 min off.

Full Changelog: gotd/td@v0.165.0...v0.165.1

Commits
  • f962e7b Merge pull request #1979 from gotd/chore/getdoc-v0.54.0
  • e2dd994 feat: update getdoc to v0.54.0
  • 8610679 Merge pull request #1977 from gotd/feat/user-bootstrap
  • 01d32ea fix(user): don't sign in again after the code was sent
  • 9c885c8 feat(user): add batteries-included user bootstrap
  • ba6e0a6 refactor(bot): move the bootstrap machinery to an internal package
  • 112718a Merge pull request #1976 from gotd/fix/mtproto-msgid-too-high
  • e9c853a fix(mtproto): start a new session after msg_id too high
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/gotd/td](https://github.com/gotd/td) from 0.165.0 to 0.166.0.
- [Release notes](https://github.com/gotd/td/releases)
- [Commits](gotd/td@v0.165.0...v0.166.0)

---
updated-dependencies:
- dependency-name: github.com/gotd/td
  dependency-version: 0.166.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 16, 2026
@ernado
ernado merged commit 8a6dd8b into main Nov 16, 2026
4 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/gotd/td-0.166.0 branch November 16, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant