Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "deno2node tsconfig.json"
},
"peerDependencies": {
"grammy": "^1.40.0"
"grammy": "^1.46.0"
},
"devDependencies": {
"deno2node": "^1.8.1"
Expand Down
9 changes: 9 additions & 0 deletions src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,15 @@ export class MenuRange<C extends Context> {
: loginUrl,
});
}
/**
* Adds a disabled button. It does nothing.
*/
disabled(
text: MaybeDynamic<C, string> | TextWithOptions<C>,
) {
const base = typeof text === "object" ? text : { text };
return this.add({ ...base, disabled: {} });
}
/**
* Adds a new inline query button. Telegram clients will let the user pick a
* chat when this button is pressed. This will start an inline query. The
Expand Down
Loading