From 94de6b6d54a7d48d6889af660ce5202d8833ed1c Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 15 Nov 2024 00:27:02 -0500 Subject: [PATCH] Add CreateNewStickerSet method --- src/TgBotLib/Enums/Methods.php | 3 ++ src/TgBotLib/Methods/CreateNewStickerSet.php | 45 ++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/TgBotLib/Methods/CreateNewStickerSet.php diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index d9259e7..ac74dbf 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -17,6 +17,7 @@ use TgBotLib\Methods\CreateChatInviteLink; use TgBotLib\Methods\CreateChatSubscriptionInviteLink; use TgBotLib\Methods\CreateForumTopic; + use TgBotLib\Methods\CreateNewStickerSet; use TgBotLib\Methods\DeclineChatJoinRequest; use TgBotLib\Methods\DeleteChatPhoto; use TgBotLib\Methods\DeleteChatStickerSet; @@ -212,6 +213,7 @@ case GET_STICKER_SET = 'getStickerSet'; case GET_CUSTOM_EMOJI_STICKERS = 'getCustomEmojiStickers'; case UPLOAD_STICKER_FILE = 'uploadStickerFile'; + case CREATE_NEW_STICKER_SET = 'createNewStickerSet'; /** * Executes a command on the provided bot with the given parameters. @@ -327,6 +329,7 @@ self::GET_STICKER_SET => GetStickerSet::execute($bot, $parameters), 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), }; } } diff --git a/src/TgBotLib/Methods/CreateNewStickerSet.php b/src/TgBotLib/Methods/CreateNewStickerSet.php new file mode 100644 index 0000000..89d377d --- /dev/null +++ b/src/TgBotLib/Methods/CreateNewStickerSet.php @@ -0,0 +1,45 @@ +