Skip to content

Commit

Permalink
add DeleteMyCommands requser (fix #349)
Browse files Browse the repository at this point in the history
  • Loading branch information
long76 authored Dec 20, 2023
1 parent 5a17652 commit 7df2c1a
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.pengrad.telegrambot.request;

import com.pengrad.telegrambot.model.botcommandscope.BotCommandScope;
import com.pengrad.telegrambot.request.BaseRequest;
import com.pengrad.telegrambot.response.BaseResponse;

public class DeleteMyCommands extends BaseRequest<DeleteMyCommands, BaseResponse> {
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;
}
}

0 comments on commit 7df2c1a

Please sign in to comment.