mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 10:53:44 +03:00
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:
parent
f5de2cd9a0
commit
969a36c2a8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user