Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added silent attribute
  • Loading branch information
ivazin committed Mar 4, 2023
commit a73099d1785e145169ddf3a63d1083337136e48f
6 changes: 6 additions & 0 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ class Message(Object, Update):
has_protected_content (``bool``, *optional*):
True, if the message can't be forwarded.

silent (``bool``, *optional*):
True, if the message was sent without sound.

has_media_spoiler (``bool``, *optional*):
True, if the message media is covered by a spoiler animation.

Expand Down Expand Up @@ -335,6 +338,7 @@ def __init__(
media_group_id: str = None,
author_signature: str = None,
has_protected_content: bool = None,
silent: bool = None,
has_media_spoiler: bool = None,
text: Str = None,
entities: List["types.MessageEntity"] = None,
Expand Down Expand Up @@ -412,6 +416,7 @@ def __init__(
self.media_group_id = media_group_id
self.author_signature = author_signature
self.has_protected_content = has_protected_content
self.silent = silent
self.has_media_spoiler = has_media_spoiler
self.text = text
self.entities = entities
Expand Down Expand Up @@ -786,6 +791,7 @@ async def _parse(
),
author_signature=message.post_author,
has_protected_content=message.noforwards,
silent=message.silent,
has_media_spoiler=has_media_spoiler,
forward_from=forward_from,
forward_sender_name=forward_sender_name,
Expand Down