Class SendContact
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendContact
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@Nullable String
@NonNull String
@Nullable String
getVcard()
void
setFirstName
(@NonNull String firstName) void
setLastName
(@Nullable String lastName) void
setPhoneNumber
(@NonNull String phoneNumber) void
Methods inherited from class io.micronaut.chatbots.telegram.api.send.Send
getChatId, getDisableNotification, getMethod, getReplyMarkup, getReplyToMessageId, setChatId, setDisableNotification, setReplyMarkup, setReplyToMessageId
-
Constructor Details
-
SendContact
public SendContact()
-
-
Method Details
-
getPhoneNumber
- Returns:
- Contact's phone number.
-
setPhoneNumber
- Parameters:
phoneNumber
- Contact's phone number.
-
getFirstName
- Returns:
- Contact's first name.
-
setFirstName
- Parameters:
firstName
- Contact's first name.
-
getLastName
- Returns:
- Contact's last name.
-
setLastName
- Parameters:
lastName
- Contact's last name.
-
getVcard
- Returns:
- Additional data about the contact in the form of a vCard, 0-2048 bytes.
-
setVcard
- Parameters:
vcard
- Additional data about the contact in the form of a vCard, 0-2048 bytes.
-