From c18a5778bc5bdcd0be9a4a2c6dc2de20b67890f5 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 15 Nov 2024 14:57:09 -0500 Subject: [PATCH] Add ReplaceStickerInSet method --- src/TgBotLib/Enums/Methods.php | 3 ++ src/TgBotLib/Methods/ReplaceStickerInSet.php | 40 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src/TgBotLib/Methods/ReplaceStickerInSet.php diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index 800127f..b3e937d 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -67,6 +67,7 @@ use TgBotLib\Methods\PromoteChatMember; use TgBotLib\Methods\ReopenForumTopic; use TgBotLib\Methods\ReopenGeneralForumTopic; + use TgBotLib\Methods\ReplaceStickerInSet; use TgBotLib\Methods\RestrictChatMember; use TgBotLib\Methods\RevokeChatInviteLink; use TgBotLib\Methods\SendAnimation; @@ -220,6 +221,7 @@ case ADD_STICKER_TO_SET = 'addStickerToSet'; case SET_STICKER_POSITION_IN_SET = 'setStickerPositionInSet'; case DELETE_STICKER_FROM_SET = 'deleteStickerFromSet'; + case REPLACE_STICKER_IN_SET = 'replaceStickerInSet'; /** * Executes a command on the provided bot with the given parameters. @@ -339,6 +341,7 @@ self::ADD_STICKER_TO_SET => AddStickerToSet::execute($bot, $parameters), self::SET_STICKER_POSITION_IN_SET => SetStickerPositionInSet::execute($bot, $parameters), self::DELETE_STICKER_FROM_SET => DeleteStickerFromSet::execute($bot, $parameters), + self::REPLACE_STICKER_IN_SET => ReplaceStickerInSet::execute($bot, $parameters), }; } } diff --git a/src/TgBotLib/Methods/ReplaceStickerInSet.php b/src/TgBotLib/Methods/ReplaceStickerInSet.php new file mode 100644 index 0000000..b8c01aa --- /dev/null +++ b/src/TgBotLib/Methods/ReplaceStickerInSet.php @@ -0,0 +1,40 @@ +