Skip to content

fix(utils): bump grammy to 1.35.0 and update botInfo type#264

Open
arunr-inji wants to merge 1 commit intogrammyjs:mainfrom
arunr-inji:fix/bump-storage-utils-grammy
Open

fix(utils): bump grammy to 1.35.0 and update botInfo type#264
arunr-inji wants to merge 1 commit intogrammyjs:mainfrom
arunr-inji:fix/bump-storage-utils-grammy

Conversation

@arunr-inji
Copy link
Copy Markdown

@arunr-inji arunr-inji commented Mar 22, 2026

@grammyjs/storage-utils was pinned to grammy 1.21.1 while some packages (e.g. redis) had moved to 1.35.0. This mismatch caused the redis node tests to fail (#2 in #262)

Bumped grammy in storage-utils to 1.35.0 and updated createBot() to include the two fields that grammy added to UserFromGetMe in that version: can_connect_to_business and has_main_web_app.

Note: the pnpm-lock.yaml diff is large but mostly quote style formatting from pnpm v10 — the only real dependency change is the grammy version for storage-utils.

CI Failures on this branch are due to:

Before fix (on main branch) - @grammyjs/storage-redis:test fails:
image

After fix (on this branch) - @grammyjs/storage-redis:test succeeds. The failing test is a separate issue - due to a dependency on better-sqlite3
image

grammy@1.35.0 added two required fields to UserFromGetMe:
can_connect_to_business and has_main_web_app. Updated the botInfo
object in createBot() accordingly.

This fixes a version mismatch between storage-utils (1.21.1) and
packages like redis (1.35.0), which caused session middleware to
throw "Cannot access session data because this update does not
belong to a chat".
@arunr-inji arunr-inji force-pushed the fix/bump-storage-utils-grammy branch from face278 to 31e3c31 Compare March 22, 2026 20:48
@arunr-inji arunr-inji marked this pull request as ready for review March 22, 2026 21:28
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