sendContact method

Future<Message> sendContact(
  1. ChatID chatId,
  2. String phoneNumber,
  3. String? firstName, {
  4. String? lastName,
  5. String? vcard,
  6. bool? disableNotification,
  7. bool? protectContent,
  8. int? replyToMessageId,
  9. bool? allowSendingWithoutReply,
  10. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send phone contacts.

On success, the sent Message is returned.

Implementation

Future<Message> sendContact(
  ChatID chatId,
  String phoneNumber,
  String? firstName, {
  String? lastName,
  String? vcard,
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendContact', {
    'chat_id': chatId,
    'phone_number': phoneNumber,
    'first_name': firstName,
    'last_name': lastName,
    'vcard': vcard,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}