MadelineProtoDocs/docs/API_docs/constructors/inputInvoiceMessage.md
2024-05-01 14:53:46 +02:00

31 lines
901 B
Markdown

---
title: "inputInvoiceMessage"
description: "An invoice contained in a messageMediaInvoice message."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputInvoiceMessage
[Back to constructors index](/API_docs/constructors/index.html)
An invoice contained in a [messageMediaInvoice](../constructors/messageMediaInvoice.html) message.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional|Chat where the invoice was sent|
|msg\_id|[int](/API_docs/types/int.html) | Yes|Message ID|
### Type: [InputInvoice](/API_docs/types/InputInvoice.html)
### Example:
```
$inputInvoiceMessage = ['_' => 'inputInvoiceMessage', 'peer' => InputPeer, 'msg_id' => int];
```