mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-13 20:25:58 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user