Visitar URL original
Add invoices! by CyanBook · Pull Request #535 · pyrogram/pyrogram · GitHub
The Wayback Machine - https://web.archive.org/web/20201210054249/https://github.com/pyrogram/pyrogram/pull/535
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invoices! #535

Open
wants to merge 15 commits into
base: master
from
Open

Add invoices! #535

wants to merge 15 commits into from

Conversation

@CyanBook
Copy link
Contributor

@CyanBook CyanBook commented Nov 13, 2020

➕ Types added
InputWebDocument
WebDocument
InputMediaInvoice
MediaInvoice
Invoice
LabeledPrice

✏️ Types modified
Message - Added invoice parameter. Available via Message.invoice

➕ Methods added
send_invoice

CyanBook added 15 commits Nov 13, 2020
Added:

LabeledPrice
A portion of the price for goods or services
https://core.telegram.org/constructor/labeledPrice
Modified:
types/messages_and_media/__init__.py
Modified "Dice" position to be in alphabetical order as every other item in __all__
Added WebDocument import and added into __all__ list
Added:
types/payments/__init__.py
Added every payment type available

Modified:
types/__init__.py
Added payments/__init__.py import
Modified:
types/messages_and_media/message.py
Added invoice parameter
Added if condition to check if a media is a raw.types.MessageMediaInvoice. If true parse it and return the result
Modified:
types/input_media/__init__.py
Added InputMediaInvoice and InputWebDocument imports and added into __all__ list
Added:

Client.send_invoice()
Send an invoice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.