From 527d546a7844593a9197d1b01bcb42838d6b244e Mon Sep 17 00:00:00 2001 From: netkas Date: Thu, 7 Nov 2024 01:05:31 -0500 Subject: [PATCH] Fix typo in method name --- src/TgBotLib/Enums/Methods.php | 4 ++-- src/TgBotLib/Methods/UnpinAllForumTopicMessages.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index 0c47aa1..d4a4ea2 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -150,7 +150,7 @@ case CLOSE_FORUM_TOPIC = 'closeForumTopic'; case REOPEN_FORUM_TOPIC = 'reopenForumTopic'; case DELETE_FORUM_TOPIC = 'deleteForumTopic'; - case UNPIN_ALLL_FORUM_TOPIC_MESSAGES = 'UnpinAllForumTopicMessages'; + case UNPIN_ALL_FORUM_TOPIC_MESSAGES = 'unpinAllForumTopicMessages'; case EDIT_GENERAL_FORUM_TOPIC = 'editGeneralForumTopic'; case CLOSE_GENERAL_FORUM_TOPIC = 'closeGeneralForumTopic'; case REOPEN_GENERAL_FORUM_TOPIC = 'reopenGeneralForumTopic'; @@ -239,7 +239,7 @@ self::CLOSE_FORUM_TOPIC => CloseForumTopic::execute($bot, $parameters), self::REOPEN_FORUM_TOPIC => ReopenForumTopic::execute($bot, $parameters), self::DELETE_FORUM_TOPIC => DeleteForumTopic::execute($bot, $parameters), - self::UNPIN_ALLL_FORUM_TOPIC_MESSAGES => UnpinAllForumTopicMessages::execute($bot, $parameters), + self::UNPIN_ALL_FORUM_TOPIC_MESSAGES => UnpinAllForumTopicMessages::execute($bot, $parameters), self::EDIT_GENERAL_FORUM_TOPIC => EditGeneralForumTopic::execute($bot, $parameters), self::CLOSE_GENERAL_FORUM_TOPIC => CloseGeneralForumTopic::execute($bot, $parameters), self::REOPEN_GENERAL_FORUM_TOPIC => ReopenGeneralForumTopic::execute($bot, $parameters), diff --git a/src/TgBotLib/Methods/UnpinAllForumTopicMessages.php b/src/TgBotLib/Methods/UnpinAllForumTopicMessages.php index ec72ab1..1d7a851 100644 --- a/src/TgBotLib/Methods/UnpinAllForumTopicMessages.php +++ b/src/TgBotLib/Methods/UnpinAllForumTopicMessages.php @@ -14,7 +14,7 @@ */ public static function execute(Bot $bot, array $parameters = []): true { - return (bool)(self::executeCurl(self::buildPost($bot, Methods::UNPIN_ALLL_FORUM_TOPIC_MESSAGES->value, $parameters))); + return (bool)(self::executeCurl(self::buildPost($bot, Methods::UNPIN_ALL_FORUM_TOPIC_MESSAGES->value, $parameters))); } /**