mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix sending custom emoji
This commit is contained in:
parent
6c34c83a3e
commit
6b7e5dcd1a
@ -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…
x
Reference in New Issue
Block a user