diff --git a/handlers/_utils.py b/handlers/_utils.py index 440e811..745cef1 100644 --- a/handlers/_utils.py +++ b/handlers/_utils.py @@ -13,11 +13,11 @@ from expiringdict import ExpiringDict from telebot import TeleBot from telebot.types import Message from telebot.util import smart_split -from telegramify_markdown.customize import markdown_symbol +from telegramify_markdown.customize import get_runtime_config from urlextract import URLExtract -markdown_symbol.head_level_1 = "📌" # If you want, Customizing the head level 1 symbol -markdown_symbol.link = "🔗" # If you want, Customizing the link symbol +get_runtime_config().markdown_symbol.head_level_1 = "📌" # If you want, Customizing the head level 1 symbol +get_runtime_config().markdown_symbol.link = "🔗" # If you want, Customizing the link symbol T = TypeVar("T", bound=Callable) logger = logging.getLogger("bot")