From 7df2c1aeffc1666a531a6a38df7dff378c525860 Mon Sep 17 00:00:00 2001 From: long76 <18124433+long76@users.noreply.github.com> Date: Wed, 20 Dec 2023 10:00:50 +0300 Subject: [PATCH] add DeleteMyCommands requser (fix #349) --- .../telegrambot/request/DeleteMyCommands.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java diff --git a/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java b/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java new file mode 100644 index 00000000..118336dd --- /dev/null +++ b/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java @@ -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 { + 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; + } +}