Fix import resolution for direct execution

This commit is contained in:
2026-08-14 19:21:52 +05:00
parent 41722c0ffc
commit de8501045f
9 changed files with 60 additions and 30 deletions
+4 -2
View File
@@ -2,8 +2,10 @@ from __future__ import annotations
import html
import re
from typing import Optional
from .config import settings
try:
from .config import settings
except (ImportError, ValueError):
from config import settings
def split_message_chunks(text: str, limit: int = 4000) -> list[str]: