mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 07:54:52 +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:
|
if self.language is None:
|
||||||
args.pop("language")
|
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
|
entity = self.type.value
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue