From 33f7a094fc72a614a0368f0203e0a75560b62b3b Mon Sep 17 00:00:00 2001 From: netkas Date: Thu, 10 Oct 2024 12:48:17 -0400 Subject: [PATCH] Minor refactoring --- src/TgBotLib/Methods/SendContact.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/TgBotLib/Methods/SendContact.php b/src/TgBotLib/Methods/SendContact.php index d2b0a99..5f2b344 100644 --- a/src/TgBotLib/Methods/SendContact.php +++ b/src/TgBotLib/Methods/SendContact.php @@ -34,10 +34,7 @@ } // Make request - $curl = self::buildPost($bot, Methods::SEND_CONTACT->value, $parameters); - $result = self::executeCurl($curl); - - return Message::fromArray($result); + return Message::fromArray(self::executeCurl(self::buildPost($bot, Methods::SEND_CONTACT->value, $parameters))); } /**