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 String title, required FormattedText description, Photo? photo, required String currency, required int totalAmount, required String startParameter, required bool isTest, required bool needShippingAddress, required int receiptMessageId, MessageExtendedMedia? extendedMedia})
-
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
- description → FormattedText
-
Product description
final
- extendedMedia → MessageExtendedMedia?
-
Extended media attached to the invoice; may be null
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
- photo → Photo?
-
Product photo; may be null
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
- title → String
-
Product title
final
- totalAmount → int
-
Product total price in the smallest units of the currency
final
Methods
-
copyWith(
{String? title, FormattedText? description, Photo? photo()?, String? currency, int? totalAmount, String? startParameter, bool? isTest, bool? needShippingAddress, int? receiptMessageId, MessageExtendedMedia? extendedMedia()?}) → 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.