Skip to content

Commit cabd0cb

Browse files
Added support for hashtag and cashtag entities with a specified chat username that opens a search for the relevant tag within the specified chat.
1 parent c16e264 commit cabd0cb

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

telebot/types.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,11 +1639,10 @@ class MessageEntity(Dictionaryable, JsonSerializable, JsonDeserializable):
16391639
16401640
Telegram Documentation: https://core.telegram.org/bots/api#messageentity
16411641
1642-
:param type: Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD),
1643-
“bot_command” (/start@jobs_bot),“url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123),
1644-
“bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text),
1645-
“spoiler” (spoiler message), “blockquote” (block quotation), “expandable_blockquote” (collapsed-by-default block quotation),
1646-
“code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs),
1642+
:param type: Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag or #hashtag@chatusername), “cashtag” ($USD or $USD@chatusername),
1643+
“bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text),
1644+
“italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “blockquote” (block quotation),
1645+
“expandable_blockquote” (collapsed-by-default block quotation), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs),
16471646
“text_mention” (for users without usernames), “custom_emoji” (for inline custom emoji stickers)
16481647
:type type: :obj:`str`
16491648

0 commit comments

Comments
 (0)