Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add invoices! #535
Add invoices! #535
Conversation
Added: InputWebDocument The web document to be sent https://core.telegram.org/constructor/inputWebDocument
Added: MediaInvoice Generated invoice of a bot payment https://core.telegram.org/constructor/messageMediaInvoice
Added: LabeledPrice A portion of the price for goods or services https://core.telegram.org/constructor/labeledPrice
Added: WebDocument A remote document https://core.telegram.org/constructor/webDocument
Added: Invoice An invoice https://core.telegram.org/constructor/invoice
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
Added: InputMediaInvoice Invoice of a bot payment https://core.telegram.org/constructor/inputMediaInvoice
Modified: types/input_media/__init__.py Added InputMediaInvoice and InputWebDocument imports and added into __all__ list
Added: Client.send_invoice() Send an invoice.


InputWebDocument
WebDocument
InputMediaInvoice
MediaInvoice
Invoice
LabeledPrice
Message - Added invoice parameter. Available via Message.invoice
send_invoice