From a4e36af33cf3e97fc313796572f385c928adb2d8 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 15 Nov 2024 00:30:08 -0500 Subject: [PATCH] Add AddStickerToSet method --- src/TgBotLib/Enums/Methods.php | 3 ++ src/TgBotLib/Methods/AddStickerToSet.php | 40 ++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src/TgBotLib/Methods/AddStickerToSet.php diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index ac74dbf..94734f0 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -5,6 +5,7 @@ use TgBotLib\Bot; use TgBotLib\Exceptions\TelegramException; use TgBotLib\Interfaces\ObjectTypeInterface; + use TgBotLib\Methods\AddStickerToSet; use TgBotLib\Methods\AnswerCallbackQuery; use TgBotLib\Methods\ApproveChatJoinRequest; use TgBotLib\Methods\BanChatMember; @@ -214,6 +215,7 @@ case GET_CUSTOM_EMOJI_STICKERS = 'getCustomEmojiStickers'; case UPLOAD_STICKER_FILE = 'uploadStickerFile'; case CREATE_NEW_STICKER_SET = 'createNewStickerSet'; + case ADD_STICKER_TO_SET = 'addStickerToSet'; /** * Executes a command on the provided bot with the given parameters. @@ -330,6 +332,7 @@ self::GET_CUSTOM_EMOJI_STICKERS => GetCustomEmojiStickers::execute($bot, $parameters), self::UPLOAD_STICKER_FILE => UploadStickerFile::execute($bot, $parameters), self::CREATE_NEW_STICKER_SET => CreateNewStickerSet::execute($bot, $parameters), + self::ADD_STICKER_TO_SET => AddStickerToSet::execute($bot, $parameters), }; } } diff --git a/src/TgBotLib/Methods/AddStickerToSet.php b/src/TgBotLib/Methods/AddStickerToSet.php new file mode 100644 index 0000000..1d5bfb8 --- /dev/null +++ b/src/TgBotLib/Methods/AddStickerToSet.php @@ -0,0 +1,40 @@ +