base: disable link preview

parent a733500c
from telegrinder import API, Telegrinder, Token
from telegrinder.modules import logger
from telegrinder.tools.formatting import HTMLFormatter
from telegrinder.types import LinkPreviewOptions
from config import config
from api import api
......@@ -11,7 +12,7 @@ logger.set_level("INFO")
tg_api = API(token=Token(config.BOT_TOKEN))
tg_api.default_params["parse_mode"] = HTMLFormatter.PARSE_MODE
tg_api.default_params["link_preview_options"] = LinkPreviewOptions(is_disabled=True)
bot = Telegrinder(tg_api)
bot.dispatch.load_from_dir("src/handlers")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment