InputMessageContent.contact constructor

const InputMessageContent.contact({
  1. @JsonKey(name: 'phone_number') required String phoneNumber,
  2. @JsonKey(name: 'first_name') required String firstName,
  3. @JsonKey(name: 'last_name') String? lastName,
  4. @JsonKey(name: 'vcard') String? vcard,
})

Represents the content of a contact message to be sent as the result of an inline query.

Implementation

const factory InputMessageContent.contact({
  /// Contact's phone number
  @JsonKey(name: 'phone_number') required final String phoneNumber,

  /// Contact's first name
  @JsonKey(name: 'first_name') required final String firstName,

  /// Optional. Contact's last name
  @JsonKey(name: 'last_name') final String? lastName,

  /// Optional. Additional data about the contact in the form of a
  /// [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes
  @JsonKey(name: 'vcard') final String? vcard,
}) = InputContactMessageContent;