From 918e93dc3055ea66d47434528a303a1af9b5f7ec Mon Sep 17 00:00:00 2001 From: Stas Parshin <2172170+pengrad@users.noreply.github.com> Date: Sat, 13 Jan 2024 14:07:12 +0700 Subject: [PATCH] Deprecate model.DeleteMyCommands --- .../java/com/pengrad/telegrambot/model/DeleteMyCommands.java | 4 ++++ .../com/pengrad/telegrambot/request/DeleteMyCommands.java | 1 - .../test/java/com/pengrad/telegrambot/TelegramBotTest.java | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/com/pengrad/telegrambot/model/DeleteMyCommands.java b/library/src/main/java/com/pengrad/telegrambot/model/DeleteMyCommands.java index cf308dbf..9a626e1f 100644 --- a/library/src/main/java/com/pengrad/telegrambot/model/DeleteMyCommands.java +++ b/library/src/main/java/com/pengrad/telegrambot/model/DeleteMyCommands.java @@ -4,6 +4,10 @@ import com.pengrad.telegrambot.request.BaseRequest; import com.pengrad.telegrambot.response.BaseResponse; +/** + * @deprecated Use com.pengrad.telegrambot.request.DeleteMyCommands instead + */ +@Deprecated public class DeleteMyCommands extends BaseRequest { public DeleteMyCommands() { diff --git a/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java b/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java index 118336dd..5d9c8431 100644 --- a/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java +++ b/library/src/main/java/com/pengrad/telegrambot/request/DeleteMyCommands.java @@ -1,7 +1,6 @@ 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 { diff --git a/library/src/test/java/com/pengrad/telegrambot/TelegramBotTest.java b/library/src/test/java/com/pengrad/telegrambot/TelegramBotTest.java index 085a5503..e7c3797c 100644 --- a/library/src/test/java/com/pengrad/telegrambot/TelegramBotTest.java +++ b/library/src/test/java/com/pengrad/telegrambot/TelegramBotTest.java @@ -7,6 +7,7 @@ import com.pengrad.telegrambot.model.request.*; import com.pengrad.telegrambot.passport.*; import com.pengrad.telegrambot.request.*; +import com.pengrad.telegrambot.request.DeleteMyCommands; import com.pengrad.telegrambot.response.*; import com.pengrad.telegrambot.utility.BotUtils; import okhttp3.OkHttpClient;