From df707a94ada76f6197d799059e28880cb7645b9c Mon Sep 17 00:00:00 2001 From: Mustafa Asaad Date: Tue, 8 Mar 2022 23:39:31 +0300 Subject: [PATCH] =?UTF-8?q?Added=20new=20MessageEntity=20type=20=E2=80=9Cs?= =?UTF-8?q?poiler=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tgbotapi/types.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tgbotapi/types.py b/tgbotapi/types.py index dda330a..9cbdea3 100644 --- a/tgbotapi/types.py +++ b/tgbotapi/types.py @@ -484,7 +484,12 @@ class MessageEntity(Dictionaryable, JsonDeserializable): def __init__(self, ttype, offset, length, url, user, language): """ This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. - :param str ttype: Type of the entity + :param str ttype: 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” (mono-width string), “pre” (mono-width block), + “text_link” (for clickable text URLs), “text_mention” (for users without usernames) :param int offset: Offset in UTF-16 code units to the start of the entity :param int length: Length of the entity in UTF-16 code units :param str or None url: Optional. For “text_link” only, url that will be opened after user taps on the text