@gramio/format
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -65,9 +65,5 @@ import { TelegramMessageEntity, TelegramUser } from "@gramio/types"; | ||
* ```ts | ||
* pre`test` | ||
* format`test ${pre(`console.log("GramIO")`, "js"}` | ||
* code`test` | ||
* format`test ${code("copy it")}` | ||
* ``` | ||
* pre with language result is | ||
* ```js | ||
* console.log("GramIO") | ||
* ``` | ||
*/ | ||
@@ -78,5 +74,9 @@ export declare const code: (str: Stringable) => FormattableString; | ||
* ```ts | ||
* code`test` | ||
* format`test ${code("GramIO")}` | ||
* pre`test` | ||
* format`test ${pre(`console.log("GramIO")`, "js")}` | ||
* ``` | ||
* pre with language result is | ||
* ```js | ||
* console.log("GramIO") | ||
* ``` | ||
*/ | ||
@@ -106,2 +106,3 @@ export declare const pre: (str: Stringable, language?: string | undefined) => FormattableString; | ||
* ``` | ||
* **NOTE**: Custom emoji entities can only be used by bots that purchased additional usernames on [Fragment](https://fragment.com/). | ||
*/ | ||
@@ -108,0 +109,0 @@ export declare const customEmoji: (str: Stringable, custom_emoji_id: string) => FormattableString; |
@@ -111,9 +111,5 @@ "use strict"; | ||
* ```ts | ||
* pre`test` | ||
* format`test ${pre(`console.log("GramIO")`, "js"}` | ||
* code`test` | ||
* format`test ${code("copy it")}` | ||
* ``` | ||
* pre with language result is | ||
* ```js | ||
* console.log("GramIO") | ||
* ``` | ||
*/ | ||
@@ -124,5 +120,9 @@ exports.code = buildFormatter("code"); | ||
* ```ts | ||
* code`test` | ||
* format`test ${code("GramIO")}` | ||
* pre`test` | ||
* format`test ${pre(`console.log("GramIO")`, "js")}` | ||
* ``` | ||
* pre with language result is | ||
* ```js | ||
* console.log("GramIO") | ||
* ``` | ||
*/ | ||
@@ -154,2 +154,3 @@ exports.pre = buildFormatter("pre", "language"); | ||
* ``` | ||
* **NOTE**: Custom emoji entities can only be used by bots that purchased additional usernames on [Fragment](https://fragment.com/). | ||
*/ | ||
@@ -156,0 +157,0 @@ exports.customEmoji = buildFormatter("custom_emoji", "custom_emoji_id"); |
{ | ||
"name": "@gramio/format", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Library for formatting text for Telegram Bot API", | ||
@@ -32,3 +32,3 @@ "homepage": "https://gramio.netlify.app/formatting.html", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.0.0" | ||
"typescript": "^5.3.3" | ||
}, | ||
@@ -35,0 +35,0 @@ "files": [ |
24104
581