Skip to content

Commit

Permalink
pyrofork: fix send_invoice examples
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Jul 31, 2024
1 parent ccf0e60 commit 1d214d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyrogram/methods/messages/send_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,24 @@ async def send_invoice(
.. 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:
Expand Down

0 comments on commit 1d214d7

Please sign in to comment.