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 Jun 27, 2023
1 parent 78f59ce commit 4b835de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions site/docs/hosting/cloudflare-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,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 4b835de

Please sign in to comment.