From b58943c7c21162ceed882c36ca6c899dfcaf2e99 Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 9 Oct 2024 15:17:22 -0400 Subject: [PATCH] Corrected SendVoiceTest --- tests/TgBotLib/Methods/SendVoiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TgBotLib/Methods/SendVoiceTest.php b/tests/TgBotLib/Methods/SendVoiceTest.php index 1ae5039..9305048 100644 --- a/tests/TgBotLib/Methods/SendVoiceTest.php +++ b/tests/TgBotLib/Methods/SendVoiceTest.php @@ -59,7 +59,7 @@ class SendVoiceTest extends TestCase $result = self::$bot->sendVoice( chat_id: TEST_CHAT_ID, - voice: 'https://example.com/voice.ogg', + voice: __DIR__ . DIRECTORY_SEPARATOR . 'sample' . DIRECTORY_SEPARATOR . 'ted.ogg', caption: 'This is a test', caption_entities: $captionEntities );