InputMessageInvoice class
A message with an invoice; can be used only by bots.
- Inheritance
-
- Object
- TlObject
- InputMessageContent
- InputMessageInvoice
- Available Extensions
Constructors
- InputMessageInvoice({required Invoice invoice, required String title, required String description, required String photo_url, required int photo_size, required int photo_width, required int photo_height, required bytes payload, required String provider_token, required String provider_data, String? start_parameter, required InputMessageContent extended_media_content, int? extra, int? clientId})
- A message with an invoice; can be used only by bots
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- description ↔ String
-
Product description; 0-255 characters.
read / write
- extended_media_content ↔ InputMessageContent
-
The content of extended media attached to the invoice. The content of the message to be sent. Must be one of the following types: inputMessagePhoto, inputMessageVideo.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- invoice ↔ Invoice
-
Invoice.
read / write
- payload ↔ bytes
-
The invoice payload.
; base64-encoded bytes
List<int>
read / write - photo_height ↔ int
-
Product photo height.
read / write
- photo_size ↔ int
-
Product photo size.
read / write
- photo_url ↔ String
-
Product photo URL; optional.
read / write
- photo_width ↔ int
-
Product photo width.
read / write
- provider_data ↔ String
-
JSON-encoded data about the invoice, which will be shared with the payment provider.
read / write
- provider_token ↔ String
-
Payment provider token.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- start_parameter ↔ String?
-
Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.
read / write
- title ↔ String
-
Product title; 1-32 characters.
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) → InputMessageInvoice? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"inputMessageInvoice"