diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index d3a580f..a7596be 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -103,6 +103,7 @@ use TgBotLib\Methods\SetStickerEmojiList; use TgBotLib\Methods\SetStickerMaskPosition; use TgBotLib\Methods\SetStickerPositionInSet; + use TgBotLib\Methods\SetStickerSetTitle; use TgBotLib\Methods\SetWebhook; use TgBotLib\Methods\StopMessageLiveLocation; use TgBotLib\Methods\StopPoll; @@ -226,6 +227,7 @@ case REPLACE_STICKER_IN_SET = 'replaceStickerInSet'; case SET_STICKER_EMOJI_LIST = 'setStickerEmojiList'; case SET_STICKER_MASK_POSITION = 'setStickerMaskPosition'; + case SET_STICKER_SET_TITLE = 'setStickerSetTitle'; /** * Executes a command on the provided bot with the given parameters. @@ -348,6 +350,7 @@ self::REPLACE_STICKER_IN_SET => ReplaceStickerInSet::execute($bot, $parameters), self::SET_STICKER_EMOJI_LIST => SetStickerEmojiList::execute($bot, $parameters), self::SET_STICKER_MASK_POSITION => SetStickerMaskPosition::execute($bot, $parameters), + self::SET_STICKER_SET_TITLE => SetStickerSetTitle::execute($bot, $parameters), }; } } diff --git a/src/TgBotLib/Methods/SetStickerSetTitle.php b/src/TgBotLib/Methods/SetStickerSetTitle.php new file mode 100644 index 0000000..d7987a7 --- /dev/null +++ b/src/TgBotLib/Methods/SetStickerSetTitle.php @@ -0,0 +1,38 @@ +value, $parameters)); + } + + /** + * @inheritDoc + */ + public static function getRequiredParameters(): ?array + { + return [ + 'name', + 'title' + ]; + } + + /** + * @inheritDoc + */ + public static function getOptionalParameters(): ?array + { + return null; + } + } \ No newline at end of file