Class Close
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
-
- org.telegram.telegrambots.meta.api.methods.BotApiMethod<Boolean>
-
- org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodBoolean
-
- org.telegram.telegrambots.meta.api.methods.updates.Close
-
- All Implemented Interfaces:
Validable
public class Close extends BotApiMethodBoolean
- Version:
- 2.4 Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters.
- 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 Close()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMethod()Getter for method path (that is the same as method name)-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodBoolean
deserializeResponse
-
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<Boolean>- Returns:
- Method path
-
-