mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-30 20:34:51 +00:00
Fix sending custom emoji
This commit is contained in:
parent
6c34c83a3e
commit
6b7e5dcd1a
1 changed files with 3 additions and 2 deletions
|
|
@ -112,8 +112,9 @@ class MessageEntity(Object):
|
|||
if self.language is None:
|
||||
args.pop("language")
|
||||
|
||||
if self.custom_emoji_id is None:
|
||||
args.pop("custom_emoji_id")
|
||||
args.pop("custom_emoji_id")
|
||||
if self.custom_emoji_id is not None:
|
||||
args["document_id"] = self.custom_emoji_id
|
||||
|
||||
entity = self.type.value
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue