Skip to content

Commit

Permalink
add protect_content arg to send_message
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Jan 8, 2022
1 parent 4e1b9ee commit aa0cb4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions userge/core/methods/messages/send_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def send_message(self, # pylint: disable=arguments-differ
disable_notification: Optional[bool] = None,
reply_to_message_id: Optional[int] = None,
schedule_date: Optional[int] = None,
protect_content: bool = None,
reply_markup: Union[InlineKeyboardMarkup,
ReplyKeyboardMarkup,
ReplyKeyboardRemove,
Expand Down Expand Up @@ -88,6 +89,9 @@ async def send_message(self, # pylint: disable=arguments-differ
schedule_date (``int``, *optional*):
Date when the message will be automatically sent. Unix time.
protect_content (``bool``, *optional*):
Protects the contents of the sent message from forwarding and saving.
reply_markup (:obj:`InlineKeyboardMarkup` | :obj:`ReplyKeyboardMarkup`
| :obj:`ReplyKeyboardRemove` | :obj:`ForceReply`, *optional*):
Additional interface options. An object for an inline keyboard,
Expand All @@ -107,6 +111,7 @@ async def send_message(self, # pylint: disable=arguments-differ
disable_notification=disable_notification,
reply_to_message_id=reply_to_message_id,
schedule_date=schedule_date,
protect_content=protect_content,
reply_markup=reply_markup)
module = inspect.currentframe().f_back.f_globals['__name__']
if log:
Expand Down

0 comments on commit aa0cb4b

Please sign in to comment.