From fe42f8747f9ee465edcb078b44e8df547dc53a53 Mon Sep 17 00:00:00 2001 From: netkas Date: Thu, 14 Nov 2024 00:21:17 -0500 Subject: [PATCH] Update return type of execute method in EditMessageMedia --- src/TgBotLib/Methods/EditMessageMedia.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TgBotLib/Methods/EditMessageMedia.php b/src/TgBotLib/Methods/EditMessageMedia.php index 18a7607..83b3412 100644 --- a/src/TgBotLib/Methods/EditMessageMedia.php +++ b/src/TgBotLib/Methods/EditMessageMedia.php @@ -14,9 +14,8 @@ /** * @inheritDoc */ - public static function execute(Bot $bot, array $parameters = []): mixed + public static function execute(Bot $bot, array $parameters = []): Message { - if (isset($parameters['reply_markup'])) { if ($parameters['reply_markup'] instanceof ObjectTypeInterface)