Skip to content

Commit f763fb7

Browse files
committed
pyrofork: Add message_effect_id parameter to send_invoice (#109)
Signed-off-by: wulan17 <wulan17@nusantararom.org>
1 parent 7e46357 commit f763fb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyrogram/methods/payments/send_invoice.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async def send_invoice(
4040
message_thread_id: int = None,
4141
quote_text: str = None,
4242
allow_paid_broadcast: bool = None,
43+
message_effect_id: int = None,
4344
quote_entities: List["types.MessageEntity"] = None,
4445
reply_markup: "types.InlineKeyboardMarkup" = None
4546
):
@@ -106,6 +107,9 @@ async def send_invoice(
106107
allow_paid_broadcast (``bool``, *optional*):
107108
Pass True to allow the message to ignore regular broadcast limits for a small fee; for bots only
108109
110+
message_effect_id (``int`` ``64-bit``, *optional*):
111+
Unique identifier of the message effect to be added to the message; for private chats only.
112+
109113
quote_entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
110114
List of special entities that appear in quote_text, which can be specified instead of *parse_mode*.
111115
for reply_to_message only.
@@ -207,6 +211,7 @@ async def send_invoice(
207211
extended_media=extended_media
208212
),
209213
allow_paid_floodskip=allow_paid_broadcast,
214+
effect=message_effect_id,
210215
random_id=self.rnd_id(),
211216
reply_to=reply_to,
212217
message="",

0 commit comments

Comments
 (0)