{"record":{"id":"03950136afbb4101","repo":"Seldaek/monolog","slug":"telegram-api-error-description-no-response","errorCode":null,"errorMessage":"Telegram API error. Description: No response","messagePattern":"Telegram API error\\. Description: No response","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/TelegramBotHandler.php","lineNumber":311,"sourceCode":"            'disable_web_page_preview' => $this->disableWebPagePreview,\n            'disable_notification' => $this->disableNotification,\n        ];\n        if ($this->topic !== null) {\n            $params['message_thread_id'] = $this->topic;\n        }\n        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));\n\n        $this->validateApiResponse(Curl\\Util::execute($ch));\n    }\n\n    /**\n     * @param  string|bool      $rawResult Raw response body from the Telegram API call\n     * @throws RuntimeException When the response is missing, non-JSON, or signals failure\n     */\n    protected function validateApiResponse(string|bool $rawResult): void\n    {\n        if (!\\is_string($rawResult)) {\n            throw new RuntimeException('Telegram API error. Description: No response');\n        }\n\n        $result = json_decode($rawResult, true);\n\n        if (!\\is_array($result)) {\n            throw new RuntimeException('Telegram API error. Description: Unexpected non-JSON response');\n        }\n        if (($result['ok'] ?? null) !== true) {\n            throw new RuntimeException('Telegram API error. Description: ' . ($result['description'] ?? 'Unknown error'));\n        }\n    }\n\n    /**\n     * Handle a message that is too long: truncates or splits into several\n     * @return string[]\n     */\n    private function handleMessageLength(string $message): array\n    {","sourceCodeStart":293,"sourceCodeEnd":329,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/TelegramBotHandler.php#L293-L329","documentation":"Error \"Telegram API error. Description: No response\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/TelegramBotHandler.php:311 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"57eb1028342134e701e77c617565d51b6e5a2a53","analyzedAt":"2026-08-17T02:36:30.259Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}