MessageInvoice class final
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageInvoice
Constructors
- MessageInvoice({required ProductInfo productInfo, required String currency, required int totalAmount, required String startParameter, required bool isTest, required bool needShippingAddress, required int receiptMessageId, PaidMedia? paidMedia, FormattedText? paidMediaCaption})
-
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
const
-
MessageInvoice.fromJson(Map<
String, dynamic> json) -
Parses a MessageInvoice from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- currency → String
-
Currency for the product price
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTest → bool
-
True, if the invoice is a test invoice
final
- needShippingAddress → bool
-
True, if the shipping address must be specified
final
- paidMedia → PaidMedia?
-
Extended media attached to the invoice; may be null if none
final
- paidMediaCaption → FormattedText?
-
Extended media caption; may be null if none
final
- productInfo → ProductInfo
-
Information about the product
final
- receiptMessageId → int
-
The identifier of the message with the receipt, after the product has been purchased
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startParameter → String
-
Unique invoice bot start_parameter to be passed to getInternalLink
final
- totalAmount → int
-
Product total price in the smallest units of the currency
final
Methods
-
copyWith(
{ProductInfo? productInfo, String? currency, int? totalAmount, String? startParameter, bool? isTest, bool? needShippingAddress, int? receiptMessageId, PaidMedia? paidMedia()?, FormattedText? paidMediaCaption()?}) → MessageInvoice -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.