public class SetChatTitle extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SetChatTitle() |
SetChatTitle(Long chatId,
String title) |
SetChatTitle(String chatId,
String title) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
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)
|
String |
getTitle() |
SetChatTitle |
setChatId(Long chatId) |
SetChatTitle |
setChatId(String chatId) |
SetChatTitle |
setTitle(String title) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public SetChatTitle setChatId(String chatId)
public SetChatTitle setChatId(Long chatId)
public String getTitle()
public SetChatTitle setTitle(String title)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Boolean>public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Boolean>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.