mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
pyrofork: Added the field effect_id to the Message.
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
e414aa2812
commit
45a7764153
1 changed files with 6 additions and 0 deletions
|
|
@ -192,6 +192,9 @@ class Message(Object, Update):
|
||||||
quote_entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
|
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.
|
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*):
|
audio (:obj:`~pyrogram.types.Audio`, *optional*):
|
||||||
Message is an audio file, information about the file.
|
Message is an audio file, information about the file.
|
||||||
|
|
||||||
|
|
@ -442,6 +445,7 @@ class Message(Object, Update):
|
||||||
caption_entities: List["types.MessageEntity"] = None,
|
caption_entities: List["types.MessageEntity"] = None,
|
||||||
quote_text: str = None,
|
quote_text: str = None,
|
||||||
quote_entities: List["types.MessageEntity"] = None,
|
quote_entities: List["types.MessageEntity"] = None,
|
||||||
|
effect_id: str = None,
|
||||||
audio: "types.Audio" = None,
|
audio: "types.Audio" = None,
|
||||||
document: "types.Document" = None,
|
document: "types.Document" = None,
|
||||||
photo: "types.Photo" = None,
|
photo: "types.Photo" = None,
|
||||||
|
|
@ -546,6 +550,7 @@ class Message(Object, Update):
|
||||||
self.caption_entities = caption_entities
|
self.caption_entities = caption_entities
|
||||||
self.quote_text = quote_text
|
self.quote_text = quote_text
|
||||||
self.quote_entities = quote_entities
|
self.quote_entities = quote_entities
|
||||||
|
self.effect_id = effect_id
|
||||||
self.audio = audio
|
self.audio = audio
|
||||||
self.document = document
|
self.document = document
|
||||||
self.photo = photo
|
self.photo = photo
|
||||||
|
|
@ -1113,6 +1118,7 @@ class Message(Object, Update):
|
||||||
outgoing=message.out,
|
outgoing=message.out,
|
||||||
reply_markup=reply_markup,
|
reply_markup=reply_markup,
|
||||||
reactions=reactions,
|
reactions=reactions,
|
||||||
|
effect_id=getattr(message, "effect", None),
|
||||||
raw=message,
|
raw=message,
|
||||||
client=client
|
client=client
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue