MessageInvoice class
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
- Inheritance
-
- Object
- TlObject
- MessageContent
- MessageInvoice
- Available Extensions
Constructors
- MessageInvoice({required String title, required FormattedText description, Photo? photo, required String currency, required int total_amount, required String start_parameter, required bool is_test, required bool need_shipping_address, required int receipt_message_id, MessageExtendedMedia? extended_media, int? extra, int? clientId})
- A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- currency ↔ String
-
Currency for the product price.
read / write
- description ↔ FormattedText
-
Product description.
read / write
- extended_media ↔ MessageExtendedMedia?
-
Extended media attached to the invoice; may be null.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- is_test ↔ bool
-
True, if the invoice is a test invoice.
read / write
- need_shipping_address ↔ bool
-
True, if the shipping address must be specified.
read / write
- photo ↔ Photo?
-
Product photo; may be null.
read / write
- receipt_message_id ↔ int
-
The identifier of the message with the receipt, after the product has been purchased.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- start_parameter ↔ String
-
Unique invoice bot start_parameter to be passed to getInternalLink.
read / write
- title ↔ String
-
Product title.
read / write
- total_amount ↔ int
-
Product total price in the smallest units of the currency.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → MessageInvoice? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"messageInvoice"