sendContact method
Future<Message>
sendContact(
- ChatID chatId,
- String phoneNumber,
- String? firstName, {
- String? lastName,
- String? vcard,
- bool? disableNotification,
- bool? protectContent,
- int? replyToMessageId,
- bool? allowSendingWithoutReply,
- 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,
});
}