Skip to content

Commit

Permalink
Reducing import from web path for Cloudflare Workers following #441
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomareVlad committed Oct 14, 2023
1 parent b12714a commit dc2e7e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions site/docs/hosting/cloudflare-workers-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ npm install grammy
Edit `src/index.js` or `src/index.ts`, and write this code inside:

```ts
// Note that we're importing from 'grammy/web', not 'grammy'.
import { Bot, webhookCallback } from "grammy/web";
import { Bot, webhookCallback } from "grammy";

// The following line of code assumes that you have configured the secrets BOT_TOKEN and BOT_INFO.
// See https://developers.cloudflare.com/workers/platform/environment-variables/#secrets-on-deployed-workers.
Expand Down

0 comments on commit dc2e7e7

Please sign in to comment.