InputMessageInvoice class final

A message with an invoice; can be used only by bots

Inheritance

Constructors

InputMessageInvoice({required Invoice invoice, required String title, required String description, required String photoUrl, required int photoSize, required int photoWidth, required int photoHeight, required String payload, required String providerToken, required String providerData, required String startParameter, required InputMessageContent extendedMediaContent})
A message with an invoice; can be used only by bots
const
InputMessageInvoice.fromJson(Map<String, dynamic> json)
Parses a InputMessageInvoice from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
description → String
Product description; 0-255 characters
final
extendedMediaContent → 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
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
invoice → Invoice
Invoice
final
payload → String
The invoice payload
final
photoHeight → int
Product photo height
final
photoSize → int
Product photo size
final
photoUrl → String
Product photo URL; optional
final
photoWidth → int
Product photo width
final
providerData → String
JSON-encoded data about the invoice, which will be shared with the payment provider
final
providerToken → String
Payment provider token
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startParameter → 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
final
title → String
Product title; 1-32 characters
final

Methods

copyWith({Invoice? invoice, String? title, String? description, String? photoUrl, int? photoSize, int? photoWidth, int? photoHeight, String? payload, String? providerToken, String? providerData, String? startParameter, InputMessageContent? extendedMediaContent}) → InputMessageInvoice
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.