mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed custom emoji typing in parser
This commit is contained in:
parent
283e45bfdc
commit
8da2286389
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class TextDecoration(ABC):
|
|||
if entity.type == "text_link":
|
||||
return self.link(value=text, link=cast(str, entity.url))
|
||||
if entity.type == "custom_emoji":
|
||||
return self.custom_emoji(value=text, custom_emoji_id=entity.custom_emoji_id)
|
||||
return self.custom_emoji(value=text, custom_emoji_id=cast(str, entity.custom_emoji_id))
|
||||
|
||||
return self.quote(text)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue