diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index d8a0e8f..e3ce7d6 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -73,6 +73,7 @@ use TgBotLib\Methods\SetWebhook; use TgBotLib\Methods\UnbanChatMember; use TgBotLib\Methods\UnbanChatSenderChat; + use TgBotLib\Methods\UnhideGeneralForumTopic; use TgBotLib\Methods\UnpinAllChatMessages; use TgBotLib\Methods\UnpinAllForumTopicMessages; use TgBotLib\Methods\UnpinChatMessage; @@ -150,6 +151,7 @@ case CLOSE_GENERAL_FORUM_TOPIC = 'closeGeneralForumTopic'; case REOPEN_GENERAL_FORUM_TOPIC = 'reopenGeneralForumTopic'; case HIDE_GENERAL_FORUM_TOPIC = 'hideGeneralForumTopic'; + case UNHIDE_GENERAL_FORUM_TOPIC = 'unhideGeneralForumTopic'; /** * Executes a command on the provided bot with the given parameters. @@ -234,6 +236,7 @@ self::CLOSE_GENERAL_FORUM_TOPIC => CloseGeneralForumTopic::execute($bot, $parameters), self::REOPEN_GENERAL_FORUM_TOPIC => ReopenGeneralForumTopic::execute($bot, $parameters), self::HIDE_GENERAL_FORUM_TOPIC => HideGeneralForumTopic::execute($bot, $parameters), + self::UNHIDE_GENERAL_FORUM_TOPIC => UnhideGeneralForumTopic::execute($bot, $parameters), }; } } diff --git a/src/TgBotLib/Methods/UnhideGeneralForumTopic.php b/src/TgBotLib/Methods/UnhideGeneralForumTopic.php new file mode 100644 index 0000000..cb7722a --- /dev/null +++ b/src/TgBotLib/Methods/UnhideGeneralForumTopic.php @@ -0,0 +1,37 @@ +value, $parameters))); + } + + /** + * @inheritDoc + */ + public static function getRequiredParameters(): ?array + { + return [ + 'chat_id' + ]; + } + + /** + * @inheritDoc + */ + public static function getOptionalParameters(): ?array + { + return null; + } + } \ No newline at end of file