diff --git a/docs/bot-api.md b/docs/bot-api.md index c76242d..362efda 100644 --- a/docs/bot-api.md +++ b/docs/bot-api.md @@ -202,7 +202,7 @@ BUN_CONFIG_VERBOSE_FETCH=curl bun src/index.ts And logs will looks like: -```curl +```bash [curl] [fetch] > HTTP/1.1 POST https://example.com/ [fetch] > content-type: application/json [fetch] > Connection: keep-alive diff --git a/docs/plugins/official/scenes.md b/docs/plugins/official/scenes.md index 1b00fe5..e5cb400 100644 --- a/docs/plugins/official/scenes.md +++ b/docs/plugins/official/scenes.md @@ -381,7 +381,7 @@ const testScene = new Scene("test").step("message", async (context) => { const testScene = new Scene("test").step("message", async (context) => { if (context.scene.step.firstTime) return context.send("First message"); - return context.scene.next(); + return context.scene.step.next(); }); ``` diff --git a/docs/ru/bot-api.md b/docs/ru/bot-api.md index be3892e..d4232c4 100644 --- a/docs/ru/bot-api.md +++ b/docs/ru/bot-api.md @@ -206,7 +206,7 @@ BUN_CONFIG_VERBOSE_FETCH=curl bun src/index.ts И логи будут выглядеть так: -```curl +```bash [curl] [fetch] > HTTP/1.1 POST https://example.com/ [fetch] > content-type: application/json [fetch] > Connection: keep-alive diff --git a/docs/ru/plugins/official/scenes.md b/docs/ru/plugins/official/scenes.md index 927dbc6..4815956 100644 --- a/docs/ru/plugins/official/scenes.md +++ b/docs/ru/plugins/official/scenes.md @@ -400,7 +400,7 @@ const testScene = new Scene("test").step("message", async (context) => { const testScene = new Scene("test").step("message", async (context) => { if (context.scene.step.firstTime) return context.send("Первое сообщение"); - return context.scene.next(); + return context.scene.step.next(); }); ``` diff --git a/docs/ru/tma/index.md b/docs/ru/tma/index.md index ee4c60c..5bc0ff8 100644 --- a/docs/ru/tma/index.md +++ b/docs/ru/tma/index.md @@ -80,7 +80,7 @@ bun create gramio@latest ./bot Когда вы создаете проект с монорепозиторием, структура вашего каталога будет выглядеть так: -```tree +```bash [tree] ├── apps │ ├── bot # Ваше приложение бота GramIO │ ├── mini-app # Фронтенд Telegram Mini App diff --git a/docs/tma/index.md b/docs/tma/index.md index 313c567..959342b 100644 --- a/docs/tma/index.md +++ b/docs/tma/index.md @@ -47,7 +47,7 @@ and choose the type of project you need! For example, this is what a monorepo created using [create-gramio](https://github.com/gramiojs/create-gramio) looks like -```tree +```bash [tree] ├── apps │ ├── bot │ ├── mini-app