replyInvoice method
Future<Message>
replyInvoice(
- String title,
- String description,
- String payload,
- String providerToken,
- String currency,
- List<
LabeledPrice> prices, { - bool withQuote = false,
- int? maxTipAmount,
- List<
int> ? suggestedTipAmounts, - String? startParameter,
- String? providerData,
- String? photoUrl,
- int? photoSize,
- int? photoWidth,
- int? photoHeight,
- bool? needName,
- bool? needPhoneNumber,
- bool? needEmail,
- bool? needShippingAddress,
- bool? sendPhoneNumberToProvider,
- bool? sendEmailToProvider,
- bool? isFlexible,
- bool? disableNotification,
- bool? protectContent,
- bool? allowSendingWithoutReply,
- InlineKeyboardMarkup? replyMarkup,
Reply to the recieved message with an invoice
A wrapper around TeleDart.sendInvoice. On success, returns the sent Message.
Apart from a title
, a description
, a payload
, a providerToken
and a list of prices
,
it can also take some options that control the message appearance and behavior.
Check Telegram API documentation for more information about those options.
Implementation
Future<Message> replyInvoice(
String title,
String description,
String payload,
String providerToken,
String currency,
List<LabeledPrice> prices, {
bool withQuote = false,
int? maxTipAmount,
List<int>? suggestedTipAmounts,
String? startParameter,
String? providerData,
String? photoUrl,
int? photoSize,
int? photoWidth,
int? photoHeight,
bool? needName,
bool? needPhoneNumber,
bool? needEmail,
bool? needShippingAddress,
bool? sendPhoneNumberToProvider,
bool? sendEmailToProvider,
bool? isFlexible,
bool? disableNotification,
bool? protectContent,
bool? allowSendingWithoutReply,
InlineKeyboardMarkup? replyMarkup,
}) =>
_teledart.sendInvoice(
chat.id, title, description, payload, providerToken, currency, prices,
messageThreadId: messageThreadId,
maxTipAmount: maxTipAmount,
suggestedTipAmounts: suggestedTipAmounts,
startParameter: startParameter,
providerData: providerData,
photoUrl: photoUrl,
photoSize: photoSize,
photoWidth: photoWidth,
photoHeight: photoHeight,
needName: needName,
needPhoneNumber: needPhoneNumber,
needEmail: needEmail,
needShippingAddress: needShippingAddress,
sendPhoneNumberToProvider: sendPhoneNumberToProvider,
sendEmailToProvider: sendEmailToProvider,
isFlexible: isFlexible,
disableNotification: disableNotification,
protectContent: protectContent,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);