Skip to content

fix: update type of BunAdapter json body#841

Merged
KnorpelSenf merged 1 commit intomainfrom
fix-bun-adapter-type
Oct 25, 2025
Merged

fix: update type of BunAdapter json body#841
KnorpelSenf merged 1 commit intomainfrom
fix-bun-adapter-type

Conversation

@rayz1065
Copy link
Member

This code currently shows a typing error due to incompatible requests:

import { Bot, webhookCallback } from "grammy";

const bot = new Bot("");
Bun.serve({
  routes: {
    "/webhook": {
      POST: webhookCallback(bot, "bun"),
    },
  },
});

This pull request aligns the type of json() with bun.

@rayz1065 rayz1065 requested a review from KnorpelSenf October 24, 2025 20:32
Copy link
Member

@KnorpelSenf KnorpelSenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KnorpelSenf KnorpelSenf changed the title Fix: update type of BunAdapter json body fix: update type of BunAdapter json body Oct 25, 2025
@KnorpelSenf KnorpelSenf merged commit 7160915 into main Oct 25, 2025
6 checks passed
@KnorpelSenf KnorpelSenf deleted the fix-bun-adapter-type branch October 25, 2025 10:43
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.

2 participants