replyContact method

Future<Message> replyContact(
  1. String phoneNumber,
  2. String firstName, {
  3. bool withQuote = false,
  4. String? lastName,
  5. String? vcard,
  6. bool? disableNotification,
  7. bool? allowSendingWithoutReply,
  8. ReplyMarkup? replyMarkup,
})

Reply to the recieved message with a location

A wrapper around TeleDart.replyContact. 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);