public class SendContact extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SendContact() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
SendContact |
disableNotification() |
SendContact |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
String |
getFirstName() |
String |
getLastName() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
String |
getPhoneNumber() |
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
SendContact |
setChatId(Long chatId) |
SendContact |
setChatId(String chatId) |
SendContact |
setFirstName(String firstName) |
SendContact |
setLastName(String lastName) |
SendContact |
setPhoneNumber(String phoneNumber) |
SendContact |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendContact |
setReplyToMessageId(Integer replyToMessageId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public SendContact setChatId(String chatId)
public SendContact setChatId(Long chatId)
public Integer getReplyToMessageId()
public SendContact setReplyToMessageId(Integer replyToMessageId)
public ReplyKeyboard getReplyMarkup()
public SendContact setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableNotification()
public SendContact enableNotification()
public SendContact disableNotification()
public String getPhoneNumber()
public SendContact setPhoneNumber(String phoneNumber)
public String getFirstName()
public SendContact setFirstName(String firstName)
public String getLastName()
public SendContact setLastName(String lastName)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Message>public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2017. All rights reserved.