mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 06:44:51 +00:00
pyrofork: Add message_effect_id parameter to send_invoice (#109)
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
885a832aa3
commit
60533eb92c
1 changed files with 5 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ class SendInvoice:
|
|||
message_thread_id: int = None,
|
||||
quote_text: str = None,
|
||||
allow_paid_broadcast: bool = None,
|
||||
message_effect_id: int = None,
|
||||
quote_entities: List["types.MessageEntity"] = None,
|
||||
reply_markup: "types.InlineKeyboardMarkup" = None
|
||||
):
|
||||
|
|
@ -106,6 +107,9 @@ class SendInvoice:
|
|||
allow_paid_broadcast (``bool``, *optional*):
|
||||
Pass True to allow the message to ignore regular broadcast limits for a small fee; for bots only
|
||||
|
||||
message_effect_id (``int`` ``64-bit``, *optional*):
|
||||
Unique identifier of the message effect to be added to the message; for private chats only.
|
||||
|
||||
quote_entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
|
||||
List of special entities that appear in quote_text, which can be specified instead of *parse_mode*.
|
||||
for reply_to_message only.
|
||||
|
|
@ -207,6 +211,7 @@ class SendInvoice:
|
|||
extended_media=extended_media
|
||||
),
|
||||
allow_paid_floodskip=allow_paid_broadcast,
|
||||
effect=message_effect_id,
|
||||
random_id=self.rnd_id(),
|
||||
reply_to=reply_to,
|
||||
message="",
|
||||
|
|
|
|||
Loading…
Reference in a new issue