pyrofork: Added the field effect_id to the Message.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
shriMADhav U k 2024-05-28 21:54:07 +02:00 committed by wulan17
parent e414aa2812
commit 45a7764153
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -192,6 +192,9 @@ class Message(Object, Update):
quote_entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
For quote text, special entities like usernames, URLs, bot commands, etc. that appear in the quote text.
effect_id (``str``, *optional*):
Unique identifier of the message effect added to the message.
audio (:obj:`~pyrogram.types.Audio`, *optional*):
Message is an audio file, information about the file.
@ -442,6 +445,7 @@ class Message(Object, Update):
caption_entities: List["types.MessageEntity"] = None,
quote_text: str = None,
quote_entities: List["types.MessageEntity"] = None,
effect_id: str = None,
audio: "types.Audio" = None,
document: "types.Document" = None,
photo: "types.Photo" = None,
@ -546,6 +550,7 @@ class Message(Object, Update):
self.caption_entities = caption_entities
self.quote_text = quote_text
self.quote_entities = quote_entities
self.effect_id = effect_id
self.audio = audio
self.document = document
self.photo = photo
@ -1113,6 +1118,7 @@ class Message(Object, Update):
outgoing=message.out,
reply_markup=reply_markup,
reactions=reactions,
effect_id=getattr(message, "effect", None),
raw=message,
client=client
)