Package com.pengrad.telegrambot.request
Class GetMyCommands
java.lang.Object
com.pengrad.telegrambot.request.BaseRequest<GetMyCommands,GetMyCommandsResponse>
com.pengrad.telegrambot.request.GetMyCommands
public class GetMyCommands extends BaseRequest<GetMyCommands,GetMyCommandsResponse>
Stas Parshin
31 March 2020
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GetMyCommands()
-
Method Summary
Modifier and Type Method Description GetMyCommands
languageCode(java.lang.String languageCode)
GetMyCommands
scope(BotCommandScope scope)
Methods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getContentType, getFileName, getMethod, getParameters, getResponseType, getTimeoutSeconds, isMultipart, toWebhookResponse
-
Constructor Details
-
GetMyCommands
public GetMyCommands()
-
-
Method Details
-
scope
- Parameters:
scope
- An object that extends the BotCommandScope class. For example: new BotCommandScopeAllPrivateChats()- Returns:
-
languageCode
- Parameters:
languageCode
- A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands- Returns:
-