MadelineProtoDocs/docs/TD_docs/constructors/messageInvoice.md

32 lines
1.2 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: messageInvoice
description: Message with an invoice from a bot
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: messageInvoice
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
Message with an invoice from a bot
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|title|[string](../types/string.md) | Yes|Goods title|
|description|[string](../types/string.md) | Yes|Goods description|
|photo|[photo](../constructors/photo.md) | Yes|Goods photo, nullable|
|currency|[string](../types/string.md) | Yes|Currency for goods price|
|total\_amount|[int53](../types/int53.md) | Yes|Goods total price in minimal quantity of the currency|
|start\_parameter|[string](../types/string.md) | Yes|Unique invoice bot start_parameter. To share an invoice use a URL https: t.me/{bot_username}?start={start_parameter}|
|is\_test|[Bool](../types/Bool.md) | Yes|True, if invoice is test|
|need\_shipping\_address|[Bool](../types/Bool.md) | Yes|True, if shipping address should be specified|
|receipt\_message\_id|[int53](../types/int53.md) | Yes|Identifier of message with receipt after the goods are paid|
### Type: [MessageContent](../types/MessageContent.md)