diff --git a/site/docs/es/hosting/cloudflare-workers-nodejs.md b/site/docs/es/hosting/cloudflare-workers-nodejs.md index b4b16f892..0202d707a 100644 --- a/site/docs/es/hosting/cloudflare-workers-nodejs.md +++ b/site/docs/es/hosting/cloudflare-workers-nodejs.md @@ -59,8 +59,7 @@ npm install grammy Edita `src/index.js` o `src/index.ts`, y escribe este código dentro: ```ts -// Ten en cuenta que estamos importando desde 'grammy/web', no desde 'grammy'. -import { Bot, webhookCallback } from "grammy/web"; +import { Bot, webhookCallback } from "grammy"; // La siguiente línea de código asume que ha configurado los secretos BOT_TOKEN y BOT_INFO. // Ver https://developers.cloudflare.com/workers/platform/environment-variables/#secrets-on-deployed-workers. diff --git a/site/docs/hosting/cloudflare-workers-nodejs.md b/site/docs/hosting/cloudflare-workers-nodejs.md index f0b99cb76..644098b6d 100644 --- a/site/docs/hosting/cloudflare-workers-nodejs.md +++ b/site/docs/hosting/cloudflare-workers-nodejs.md @@ -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. diff --git a/site/docs/id/hosting/cloudflare-workers-nodejs.md b/site/docs/id/hosting/cloudflare-workers-nodejs.md index 381d467d3..715a42895 100644 --- a/site/docs/id/hosting/cloudflare-workers-nodejs.md +++ b/site/docs/id/hosting/cloudflare-workers-nodejs.md @@ -59,8 +59,7 @@ npm install grammy Tulis kode berikut ke dalam `src/index.js` atau `src/index.ts`: ```ts -// Perhatikan bahwa kita meng-import dari 'grammy/web', bukan 'grammy'. -import { Bot, webhookCallback } from "grammy/web"; +import { Bot, webhookCallback } from "grammy"; // Baris kode berikut mengasumsikan bahwa kamu sudah mengonfigurasi secret BOT_TOKEN dan BOT_INFO. // Lihat https://developers.cloudflare.com/workers/platform/environment-variables/#secrets-on-deployed-workers. diff --git a/site/docs/uk/hosting/cloudflare-workers-nodejs.md b/site/docs/uk/hosting/cloudflare-workers-nodejs.md index 3f23b10c2..221ecc8f9 100644 --- a/site/docs/uk/hosting/cloudflare-workers-nodejs.md +++ b/site/docs/uk/hosting/cloudflare-workers-nodejs.md @@ -59,8 +59,7 @@ npm install grammy Відредагуйте `src/index.js` або `src/index.ts` та напишіть такий код всередині: ```ts -// Зверніть увагу, що ми імпортуємо з 'grammy/web', а не з 'grammy'. -import { Bot, webhookCallback } from "grammy/web"; +import { Bot, webhookCallback } from "grammy"; // Наступний рядок коду передбачає, що ви налаштували секрети BOT_TOKEN та BOT_INFO. // Дивіться https://developers.cloudflare.com/workers/platform/environment-variables/#secrets-on-deployed-workers diff --git a/site/docs/zh/hosting/cloudflare-workers-nodejs.md b/site/docs/zh/hosting/cloudflare-workers-nodejs.md index a2c4aa95b..423b9dd3b 100644 --- a/site/docs/zh/hosting/cloudflare-workers-nodejs.md +++ b/site/docs/zh/hosting/cloudflare-workers-nodejs.md @@ -59,8 +59,7 @@ npm install grammy 编辑 `src/index.js` 或 `src/index.ts`,在里面写下这段代码: ```ts -// 请注意,我们是从 `grammy/web` 而不是 `grammy` 导入。 -import { Bot, webhookCallback } from "grammy/web"; +import { Bot, webhookCallback } from "grammy"; // 你可以将 `BOT_TOKEN` 替换为你的 bot token,但最好将其存储在环境变量中。 // 更多有关信息,请参阅 https://developers.cloudflare.com/workers/platform/environment-variables/#secrets-on-deployed-workers.