Update docs for silent parameter

Since it now also works in private chats to "not disturb friends"
(see https://telegram.org/blog/silent-messages-slow-mode).
This commit is contained in:
Lonami Exo 2019-08-10 09:06:05 +02:00
parent f5de2cd9a0
commit 969a36c2a8
4 changed files with 17 additions and 9 deletions

View File

@ -760,9 +760,10 @@ class MessageMethods:
the entity from which the messages should be forwarded.
silent (`bool`, optional):
Whether the message should notify people in a broadcast
channel or not. Defaults to `False`, which means it will
notify them. Set it to `True` to alter this behaviour.
Whether the message should notify people with sound or not.
Defaults to `False` (send with a notification sound unless
the person has the chat muted). Set it to `True` to alter
this behaviour.
as_album (`bool`, optional):
Whether several image messages should be forwarded as an

View File

@ -217,9 +217,10 @@ class UploadMethods:
:tl:`ReplyMarkup` here.
silent (`bool`, optional):
Whether the message should notify people in a broadcast
channel or not. Defaults to `False`, which means it will
notify them. Set it to `True` to alter this behaviour.
Whether the message should notify people with sound or not.
Defaults to `False` (send with a notification sound unless
the person has the chat muted). Set it to `True` to alter
this behaviour.
supports_streaming (`bool`, optional):
Whether the sent video supports streaming or not. Note that

View File

@ -110,7 +110,10 @@ class InlineResult:
If present, the sent message will reply to this ID or message.
silent (`bool`, optional):
If `True`, the sent message will not notify the user(s).
Whether the message should notify people with sound or not.
Defaults to `False` (send with a notification sound unless
the person has the chat muted). Set it to `True` to alter
this behaviour.
clear_draft (`bool`, optional):
Whether the draft should be removed after sending the

View File

@ -44,9 +44,12 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
Whether you have read the media in this message
or not, e.g. listened to the voice note media.
silent (`bool`):
Whether this message should notify or not,
used in channels.
Whether the message should notify people with sound or not.
Previously used in channels, but since 9 August 2019, it can
also be `used in private chats
<https://telegram.org/blog/silent-messages-slow-mode>`_.
post (`bool`):
Whether this message is a post in a broadcast