diff --git a/pyrogram/methods/messages/copy_message.py b/pyrogram/methods/messages/copy_message.py index 1a7ccd50..b8109a50 100644 --- a/pyrogram/methods/messages/copy_message.py +++ b/pyrogram/methods/messages/copy_message.py @@ -42,6 +42,7 @@ class CopyMessage: reply_to_message_id: int = None, schedule_date: datetime = None, protect_content: bool = None, + allow_paid_broadcast: bool = None, invert_media: bool = False, reply_markup: Union[ "types.InlineKeyboardMarkup", @@ -105,6 +106,9 @@ class CopyMessage: protect_content (``bool``, *optional*): Protects the contents of the sent message from forwarding and saving. + allow_paid_broadcast (``bool``, *optional*): + Pass True to allow the message to ignore regular broadcast limits for a small fee; for bots only. + invert_media (``bool``, *optional*): Inverts the position of the media and caption. @@ -135,6 +139,7 @@ class CopyMessage: reply_to_message_id=reply_to_message_id, schedule_date=schedule_date, protect_content=protect_content, + allow_paid_broadcast=allow_paid_broadcast, invert_media=invert_media, reply_markup=reply_markup ) diff --git a/pyrogram/methods/messages/forward_messages.py b/pyrogram/methods/messages/forward_messages.py index f47e8578..02c54807 100644 --- a/pyrogram/methods/messages/forward_messages.py +++ b/pyrogram/methods/messages/forward_messages.py @@ -35,6 +35,7 @@ class ForwardMessages: disable_notification: bool = None, schedule_date: datetime = None, protect_content: bool = None, + allow_paid_broadcast: bool = None, drop_author: bool = None ) -> Union["types.Message", List["types.Message"]]: """Forward messages of any kind. @@ -71,6 +72,9 @@ class ForwardMessages: protect_content (``bool``, *optional*): Protects the contents of the sent message from forwarding and saving. + allow_paid_broadcast (``bool``, *optional*): + Pass True to allow the message to ignore regular broadcast limits for a small fee; for bots only. + drop_author (``bool``, *optional*): Forwards messages without quoting the original author @@ -101,6 +105,7 @@ class ForwardMessages: random_id=[self.rnd_id() for _ in message_ids], schedule_date=utils.datetime_to_timestamp(schedule_date), noforwards=protect_content, + allow_paid_floodskip=allow_paid_broadcast, drop_author=drop_author ) )