Comparing version 3.6.3 to 3.7.0
@@ -261,3 +261,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. | ||
@@ -268,3 +268,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. | ||
@@ -285,3 +285,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/) | ||
@@ -313,3 +314,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> | ||
@@ -356,3 +358,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; | ||
@@ -377,2 +379,3 @@ /** Offset in UTF-16 code units to the start of the entity */ | ||
| "strikethrough" | ||
| "spoiler" | ||
| "code"; | ||
@@ -379,0 +382,0 @@ } |
{ | ||
"name": "typegram", | ||
"version": "3.6.3", | ||
"version": "3.7.0", | ||
"description": "Type declarations for the Telegram API", | ||
@@ -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
241716
3942