setAutoRetry(true); } /** * Tests the `sendMessage` function of the bot instance. * * @return void */ public function testSendAudio(): void { $result = self::$bot->sendAudio( chat_id: TEST_CHAT_ID, audio: self::TEST_AUDIO_PATH, caption: 'Test Unit: testSendAudio', ); $this->assertInstanceOf(Message::class, $result); $this->assertEquals('Test Unit: testSendAudio', $result->getCaption()); } }