replyContact method
Reply to the recieved message with a location
A wrapper around TeleDart.sendContact. On success, returns the sent Message.
Apart from a phoneNumber
and a firstName
, 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> replyContact(
String phoneNumber,
String firstName, {
bool withQuote = false,
String? lastName,
String? vcard,
bool? disableNotification,
bool? allowSendingWithoutReply,
ReplyMarkup? replyMarkup,
}) =>
_teledart.sendContact(chat.id, phoneNumber, firstName,
messageThreadId: messageThreadId,
lastName: lastName,
vcard: vcard,
disableNotification: disableNotification,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);