com.pengrad.telegrambot.request.DeleteMyCommands Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.request;
import com.pengrad.telegrambot.model.botcommandscope.BotCommandScope;
import com.pengrad.telegrambot.response.BaseResponse;
public class DeleteMyCommands extends BaseRequest {
public DeleteMyCommands() {
super(BaseResponse.class);
}
public DeleteMyCommands scope(BotCommandScope scope) {
this.add("scope", scope);
return this;
}
public DeleteMyCommands languageCode(String languageCode) {
this.add("language_code", languageCode);
return this;
}
}