diff --git a/docs/keyboards/overview.md b/docs/keyboards/overview.md index a61620a..7776533 100644 --- a/docs/keyboards/overview.md +++ b/docs/keyboards/overview.md @@ -28,7 +28,15 @@ bun install @gramio/keyboards ## Usage -```ts twoslash +::: code-group + +```ts twoslash [with GramIO] +import { Keyboard } from "gramio"; + +const keyboard = new Keyboard().text("first row").row().text("second row"); +``` + +```ts twoslash [without GramIO] import { Keyboard } from "@gramio/keyboards"; const keyboard = new Keyboard() @@ -38,8 +46,7 @@ const keyboard = new Keyboard() .toJSON(); ``` -> [!IMPORTANT] -> In gramio, you don't have to use the ".toJSON" method +::: ## Usage with Frameworks diff --git a/docs/types/index.md b/docs/types/index.md index 1f3b253..f4210be 100644 --- a/docs/types/index.md +++ b/docs/types/index.md @@ -111,6 +111,10 @@ api.sendMessage({ }); ``` +### With file upload support + +See [files/usage-without-gramio](/files/usage-without-gramio) + ## Generate types manually Prerequire - [`rust`](https://www.rust-lang.org/)