mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
pyrofork: fix send_invoice examples
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
9669d62562
commit
5a9c11934a
1 changed files with 6 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue