mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Add cashtag message entity
This commit is contained in:
parent
fade921ac0
commit
e89d56e058
2 changed files with 4 additions and 3 deletions
|
|
@ -60,6 +60,7 @@ class Str(str):
|
||||||
ENTITIES = {
|
ENTITIES = {
|
||||||
types.MessageEntityMention.ID: "mention",
|
types.MessageEntityMention.ID: "mention",
|
||||||
types.MessageEntityHashtag.ID: "hashtag",
|
types.MessageEntityHashtag.ID: "hashtag",
|
||||||
|
types.MessageEntityCashtag.ID: "cashtag",
|
||||||
types.MessageEntityBotCommand.ID: "bot_command",
|
types.MessageEntityBotCommand.ID: "bot_command",
|
||||||
types.MessageEntityUrl.ID: "url",
|
types.MessageEntityUrl.ID: "url",
|
||||||
types.MessageEntityEmail.ID: "email",
|
types.MessageEntityEmail.ID: "email",
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ class MessageEntity(Object):
|
||||||
Args:
|
Args:
|
||||||
type (``str``):
|
type (``str``):
|
||||||
Type of the entity.
|
Type of the entity.
|
||||||
Can be mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text),
|
Can be "mention" (@username), "hashtag", "cashtag", "bot_command", "url", "email", "bold" (bold text),
|
||||||
code (monowidth string), pre (monowidth block), text_link (for clickable text URLs),
|
italic (italic text), "code" (monowidth string), "pre" (monowidth block), "text_link" (for clickable text
|
||||||
text_mention (for users without usernames).
|
URLs), "text_mention" (for users without usernames).
|
||||||
|
|
||||||
offset (``int``):
|
offset (``int``):
|
||||||
Offset in UTF-16 code units to the start of the entity.
|
Offset in UTF-16 code units to the start of the entity.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue