Skip to content

Commit

Permalink
feat: add support to expandable_blockquote
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed May 28, 2024
1 parent ea0e1c2 commit 5a027c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gramio/format",
"version": "0.1.2",
"version": "0.1.3",
"description": "Library for formatting text for Telegram Bot API",
"homepage": "https://gramio.dev/formatting.html",
"repository": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@gramio/types": "^7.3.4"
"@gramio/types": "^7.4.0"
},
"files": [
"dist"
Expand Down
12 changes: 12 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ export const spoiler = buildFormatter("spoiler");
*/
export const blockquote = buildFormatter("blockquote");

/**
* Format text as expandable blockquote. Cannot be nested.
* @example
* ```ts
* blockquote`test`
* format`test ${expandableBlockquote(bold("GramIO"))}`
* format`Format text as ${expandableBlockquote`blockquote`}`;
* ```
* ![blockquote](https://gramio.dev/formatting/expandable_blockquote.png)
*/
export const expandableBlockquote = buildFormatter("expandable_blockquote");

/**
* Format text as `code`. Cannot be combined with any other format.
* @example
Expand Down

0 comments on commit 5a027c4

Please sign in to comment.