Class GetMyDefaultAdministratorRights
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
-
- org.telegram.telegrambots.meta.api.methods.BotApiMethod<ChatAdministratorRights>
-
- org.telegram.telegrambots.meta.api.methods.adminrights.GetMyDefaultAdministratorRights
-
- All Implemented Interfaces:
Validable
public class GetMyDefaultAdministratorRights extends BotApiMethod<ChatAdministratorRights>
- Version:
- 6.0 Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
- Author:
- Ruben Bermudez
-
-
Field Summary
Fields Modifier and Type Field Description static StringPATH-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.BotApiMethod
METHOD_FIELD
-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description GetMyDefaultAdministratorRights()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatAdministratorRightsdeserializeResponse(String answer)Deserialize a json answer to the response type to a methodStringgetMethod()Getter for method path (that is the same as method name)-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMethod
public String getMethod()
Description copied from class:BotApiMethodGetter for method path (that is the same as method name)- Specified by:
getMethodin classBotApiMethod<ChatAdministratorRights>- Returns:
- Method path
-
deserializeResponse
public ChatAdministratorRights deserializeResponse(String answer) throws TelegramApiRequestException
Description copied from class:PartialBotApiMethodDeserialize a json answer to the response type to a method- Specified by:
deserializeResponsein classPartialBotApiMethod<ChatAdministratorRights>- Parameters:
answer- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
-