Skip to content

chore(deps): Bump teleproto from 1.228.5 to 1.229.0 - #49

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/teleproto-1.229.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/teleproto-1.229.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 2, 2026

Copy link
Copy Markdown
Contributor

Bumps teleproto from 1.228.5 to 1.229.0.

Release notes

Sourced from teleproto's releases.

v1.229.0

Changes

  • Layer 229
  • client.updates: a middleware pipeline next to the classic handlers via use, on, catch, watch
  • Update names come from the schema, so all 165 are autocompleted and typed as their exact class
  • client.updates.watch(chat, handler) keeps updates flowing for channels the account is not a member of
  • InlineKeyboard and ReplyKeyboard build markup from a grid, by chaining, or both, and expose every field of their schema placeholder, persistent, colours, icons and the rest
  • Rich messages render the new button and document blocks

Breaking

  • Layer 229 replaced 17 button constructors with keyboardButton and keyboardInlineButton, each carrying a type:
if (button instanceof Api.KeyboardInlineButton
    && button.type instanceof Api.InlineButtonTypeCallback) handle(button.type.data);

Button.*, MessageButton and the buttons: option are unchanged.

  • Generated input unions are now TypeXIn instead of XIn, which collided with the constructor of the same name

Fixes

  • Files stored on another datacenter are requested from that datacenter instead of migrating on every part
  • Abort listeners no longer pile up on a caller's AbortSignal
  • A flapping link backs off instead of reconnecting 20 times a second, and connection attempts follow a 1…64 second ladder
  • Socket errors carry the stack of the failure, not of the module
  • Quizzes with more than ten answers are accepted (#38)
  • singleUse and selective reach the reply keyboard instead of overwriting resize
  • Six modules could not be imported on their own; the library has no runtime import cycles left

Upgrade

  • npm i teleproto@latest
Commits
  • 9b0ebd1 chore(version): update version to 1.229.0
  • 641f154 feat(buttons): add keyboard builders and cover every markup field
  • 1591dcb docs(updates): document the client.updates pipeline
  • 0293064 refactor(imports): remove runtime import cycles and guard against new ones
  • 52c1986 fix(generator): stop emitting duplicate input type names
  • f5e49c2 fix(network): back off between connection attempts and keep socket error stacks
  • 20887bf fix(downloads): send file requests to the datacenter that holds the file
  • 5a12c59 refactor(client): remove outdated comments
  • aa9e1e2 feat(updates): watch chats and keep channel updates flowing
  • 732b750 feat(updates): type update names and handlers from the generated schema
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 2, 2026
Bumps [teleproto](https://github.com/sanyok12345/teleproto) from 1.228.5 to 1.229.0.
- [Release notes](https://github.com/sanyok12345/teleproto/releases)
- [Commits](sanyok12345/teleproto@v1.228.5...v1.229.0)

---
updated-dependencies:
- dependency-name: teleproto
  dependency-version: 1.229.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/teleproto-1.229.0 branch from 7fdfeca to 4e9e2ae Compare September 5, 2026 19:46
@windkh

windkh commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Superseded by fc18352 on main, which takes 1.229.0 and the adaptation it needs. Closing.

The failures here were real, but none of them were defects in this package. 1.229 restructured two things:

Inline buttons. Button.url() used to return a KeyboardButtonUrl with text and url at the top level. It now returns a KeyboardInlineButton carrying the payload one level down:

// 1.228.5
{ className: 'KeyboardButtonUrl', text: 'Open', url: 'https://x.dev' }
// 1.229.0
{ className: 'KeyboardInlineButton', text: 'Open', type: { url: 'https://x.dev', className: 'InlineButtonTypeUrl' } }

lib/reply-markup.js calls the public Button.url() / Button.inline() helpers and needed no change. The tests pinned the old class name and did — they now read through type, which is what actually says what kind of button it is.

Api.Message lost its custom getters. message.text and message.client read undefined now; the text is in .message.

That second one was worth checking rather than assuming, because it touches ADR 0025: teleproto still attaches the client as _client (events/common.js), so hideClientReferences hides exactly what it always hid and the session still cannot reach a msg. Nothing this package ships used the removed getters — not the nodes, not the examples, not the README.

The part worth taking away: the declared range was ^1.228.5, which already resolved to 1.229.0 for anyone installing today — while CI kept testing 1.228.5 from the lockfile. The suite was green against a version users were no longer getting. The range is now ^1.229.0 so the two agree.

Released as 3.1.0. 440 tests, lint, format:check and coverage:check green on 1.229.0.

@windkh windkh closed this Sep 5, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/teleproto-1.229.0 branch September 5, 2026 19:52
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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant