@grammyjs/types
Advanced tools
Comparing version 2.4.6 to 2.5.0
@@ -215,3 +215,3 @@ import { InlineKeyboardMarkup } from "./inline"; | ||
/** The Bot API supports basic formatting for messages. You can use bold, italic, underlined and strikethrough text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting. | ||
/** The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting. | ||
@@ -222,3 +222,3 @@ Note that Telegram clients will display an **alert** to the user before opening an inline link ('Open this link?' together with the full URL). | ||
- If two entities have common characters then one of them is fully contained inside another. | ||
- bold, italic, underline and strikethrough entities can contain and to be contained in any other entities, except pre and code. | ||
- bold, italic, underline, strikethrough, and spoiler entities can contain and can be part of any other entities, except pre and code. | ||
- All other entities can't contain each other. | ||
@@ -239,3 +239,4 @@ | ||
~strikethrough~ | ||
*bold _italic bold ~italic bold strikethrough~ __underline italic bold___ bold* | ||
||spoiler|| | ||
*bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold* | ||
[inline URL](http://www.example.com/) | ||
@@ -267,3 +268,4 @@ [inline mention of a user](tg://user?id=123456789) | ||
<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del> | ||
<b>bold <i>italic bold <s>italic bold strikethrough</s> <u>underline italic bold</u></i> bold</b> | ||
<span class="tg-spoiler">spoiler</span> | ||
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b> | ||
<a href="http://www.example.com/">inline URL</a> | ||
@@ -310,3 +312,3 @@ <a href="tg://user?id=123456789">inline mention of a user</a> | ||
interface AbstractMessageEntity { | ||
/** Type of the entity. Can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames) */ | ||
/** Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames) */ | ||
type: string; | ||
@@ -331,2 +333,3 @@ /** Offset in UTF-16 code units to the start of the entity */ | ||
| "strikethrough" | ||
| "spoiler" | ||
| "code"; | ||
@@ -333,0 +336,0 @@ } |
{ | ||
"name": "@grammyjs/types", | ||
"version": "2.4.6", | ||
"version": "2.5.0", | ||
"description": "Telegram Bot API type declarations for grammY", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230443
3777