Skip to content

Commit e9fe111

Browse files
authored
Improve documentation of protect_content, from TD.
1 parent 7478494 commit e9fe111

22 files changed

+39
-39
lines changed

pyrogram/methods/bots/send_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def send_game(
6262
Users will receive a notification with no sound.
6363
6464
protect_content (``bool``, *optional*):
65-
Protects the contents of the sent message from forwarding and saving.
65+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
6666
6767
message_thread_id (``int``, *optional*):
6868
If the message is in a thread, ID of the original message.

pyrogram/methods/business/send_invoice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def send_invoice(
144144
Users will receive a notification with no sound.
145145
146146
protect_content (``bool``, *optional*):
147-
Protects the contents of the sent message from forwarding and saving.
147+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
148148
149149
message_effect_id (``int`` ``64-bit``, *optional*):
150150
Unique identifier of the message effect to be added to the message; for private chats only.

pyrogram/methods/messages/copy_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def copy_message(
106106
Unique identifier of the business connection on behalf of which the message will be sent
107107
108108
protect_content (``bool``, *optional*):
109-
Protects the contents of the sent message from forwarding and saving
109+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
110110
111111
message_thread_id (``int``, *optional*):
112112
Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

pyrogram/methods/messages/forward_messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def forward_messages(
6363
Users will receive a notification with no sound.
6464
6565
protect_content (``bool``, *optional*):
66-
Protects the contents of the sent message from forwarding and saving.
66+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
6767
6868
drop_author (``bool``, *optional*):
6969
Whether to forward messages without quoting the original author.

pyrogram/methods/messages/send_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def send_animation(
141141
Date when the message will be automatically sent.
142142
143143
protect_content (``bool``, *optional*):
144-
Protects the contents of the sent message from forwarding and saving.
144+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
145145
146146
ttl_seconds (``int``, *optional*):
147147
Self-Destruct Timer.

pyrogram/methods/messages/send_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def send_audio(
129129
Date when the message will be automatically sent.
130130
131131
protect_content (``bool``, *optional*):
132-
Protects the contents of the sent message from forwarding and saving.
132+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
133133
134134
reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
135135
Additional interface options. An object for an inline keyboard, custom reply keyboard,

pyrogram/methods/messages/send_cached_media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def send_cached_media(
102102
Date when the message will be automatically sent.
103103
104104
protect_content (``bool``, *optional*):
105-
Protects the contents of the sent message from forwarding and saving.
105+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
106106
107107
has_spoiler (``bool``, *optional*):
108108
True, if the message media is covered by a spoiler animation.

pyrogram/methods/messages/send_contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async def send_contact(
8888
Date when the message will be automatically sent.
8989
9090
protect_content (``bool``, *optional*):
91-
Protects the contents of the sent message from forwarding and saving.
91+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
9292
9393
message_effect_id (``int`` ``64-bit``, *optional*):
9494
Unique identifier of the message effect to be added to the message; for private chats only.

pyrogram/methods/messages/send_dice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async def send_dice(
8080
Date when the message will be automatically sent.
8181
8282
protect_content (``bool``, *optional*):
83-
Protects the contents of the sent message from forwarding and saving.
83+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
8484
8585
message_effect_id (``int`` ``64-bit``, *optional*):
8686
Unique identifier of the message effect to be added to the message; for private chats only.

pyrogram/methods/messages/send_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def send_document(
123123
Date when the message will be automatically sent.
124124
125125
protect_content (``bool``, *optional*):
126-
Protects the contents of the sent message from forwarding and saving.
126+
Pass True if the content of the message must be protected from forwarding and saving; for bots only.
127127
128128
reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
129129
Additional interface options. An object for an inline keyboard, custom reply keyboard,

0 commit comments

Comments
 (0)