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)