public class ExportChatInviteLink extends BotApiMethod<String>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
ExportChatInviteLink() |
ExportChatInviteLink(Long chatId) |
ExportChatInviteLink(String chatId) |
| Modifier and Type | Method and Description |
|---|---|
String |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
ExportChatInviteLink |
setChatId(Long chatId) |
ExportChatInviteLink |
setChatId(String chatId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public ExportChatInviteLink()
public ExportChatInviteLink(String chatId)
public ExportChatInviteLink(Long chatId)
public String getChatId()
public ExportChatInviteLink setChatId(String chatId)
public ExportChatInviteLink setChatId(Long chatId)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<String>public String deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<String>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.