//#region extensions/telegram/src/errors.ts
/**
* Telegram Error Utilities
*/
const TELEGRAM_PARSE_ERR_RE = /can't parse entities|parse entities|find end of the entity|Unmatched end tag/i;
/**
* Check if error is a Telegram HTML parse error
*/
function isTelegramHtmlParseError(err) {
	if (!(err instanceof Error)) return false;
	return TELEGRAM_PARSE_ERR_RE.test(err.message);
}
//#endregion
export { isTelegramHtmlParseError };

//# sourceMappingURL=errors.js.map