mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
pyrofork: add invert_media field to class Message
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
c8768f65cf
commit
a50c72b375
1 changed files with 7 additions and 0 deletions
|
|
@ -195,6 +195,10 @@ class Message(Object, Update):
|
|||
effect_id (``str``, *optional*):
|
||||
Unique identifier of the message effect added to the message.
|
||||
|
||||
invert_media (``bool``, *optional*):
|
||||
True, If the media position is inverted.
|
||||
only animation, photo, video, and webpage preview messages.
|
||||
|
||||
audio (:obj:`~pyrogram.types.Audio`, *optional*):
|
||||
Message is an audio file, information about the file.
|
||||
|
||||
|
|
@ -458,6 +462,7 @@ class Message(Object, Update):
|
|||
quote_text: str = None,
|
||||
quote_entities: List["types.MessageEntity"] = None,
|
||||
effect_id: str = None,
|
||||
invert_media: bool = None,
|
||||
audio: "types.Audio" = None,
|
||||
document: "types.Document" = None,
|
||||
photo: "types.Photo" = None,
|
||||
|
|
@ -565,6 +570,7 @@ class Message(Object, Update):
|
|||
self.quote_text = quote_text
|
||||
self.quote_entities = quote_entities
|
||||
self.effect_id = effect_id
|
||||
self.invert_media = invert_media
|
||||
self.audio = audio
|
||||
self.document = document
|
||||
self.photo = photo
|
||||
|
|
@ -1120,6 +1126,7 @@ class Message(Object, Update):
|
|||
edit_hide=message.edit_hide,
|
||||
edit_date=utils.timestamp_to_datetime(message.edit_date),
|
||||
media_group_id=message.grouped_id,
|
||||
invert_media=message.invert_media,
|
||||
photo=photo,
|
||||
location=location,
|
||||
contact=contact,
|
||||
|
|
|
|||
Loading…
Reference in a new issue