{"record":{"id":"9b7e8de858fde212","repo":"Seldaek/monolog","slug":"unknown-parsemode-use-one-of-these","errorCode":null,"errorMessage":"Unknown parseMode, use one of these: {}.","messagePattern":"Unknown parseMode, use one of these: (.+?)\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/TelegramBotHandler.php","lineNumber":143,"sourceCode":"        parent::__construct($level, $bubble);\n\n        $this->apiKey = $apiKey;\n        $this->channel = $channel;\n        $this->setParseMode($parseMode);\n        $this->disableWebPagePreview($disableWebPagePreview);\n        $this->disableNotification($disableNotification);\n        $this->splitLongMessages($splitLongMessages);\n        $this->delayBetweenMessages($delayBetweenMessages);\n        $this->setTopic($topic);\n    }\n\n    /**\n     * @return $this\n     */\n    public function setParseMode(string|null $parseMode = null): self\n    {\n        if ($parseMode !== null && !\\in_array($parseMode, self::AVAILABLE_PARSE_MODES, true)) {\n            throw new \\InvalidArgumentException('Unknown parseMode, use one of these: ' . implode(', ', self::AVAILABLE_PARSE_MODES) . '.');\n        }\n\n        $this->parseMode = $parseMode;\n\n        return $this;\n    }\n\n    /**\n     * @return $this\n     */\n    public function disableWebPagePreview(bool|null $disableWebPagePreview = null): self\n    {\n        $this->disableWebPagePreview = $disableWebPagePreview;\n\n        return $this;\n    }\n\n    /**","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/TelegramBotHandler.php#L125-L161","documentation":"Error \"Unknown parseMode, use one of these: {}.\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/TelegramBotHandler.php:143 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"}