From 5a9c11934a8554d987fad8f01f06bb08e4a25478 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Wed, 31 Jul 2024 11:49:18 +0700 Subject: [PATCH] pyrofork: fix send_invoice examples Signed-off-by: wulan17 --- pyrogram/methods/messages/send_invoice.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyrogram/methods/messages/send_invoice.py b/pyrogram/methods/messages/send_invoice.py index 51308814..2ae44c75 100644 --- a/pyrogram/methods/messages/send_invoice.py +++ b/pyrogram/methods/messages/send_invoice.py @@ -114,22 +114,24 @@ class SendInvoice: .. code-block:: python # USD - app.send_invoice(chat_id, types.InputMediaInvoice( + app.send_invoice( + chat_id, title="Product Name", description="Product Description", currency="USD", prices=[types.LabeledPrice("Product", 1000)], provider="Stripe_provider_codes", provider_data="{}" - )) + ) # Telegram Stars - app.send_invoice(chat_id, types.InputMediaInvoice( + app.send_invoice( + chat_id, title="Product Name", description="Product Description", currency="XTR", prices=[types.LabeledPrice("Product", 1000)] - )) + ) """ if reply_markup is not None: