From f3f861fa113008878debca66c65e34d6edf43ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B1=D9=88=D8=AC=D8=B1?= <104784913+rogerpq@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:19:07 +0300 Subject: [PATCH] Update inlinebot.py --- repthon/core/inlinebot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repthon/core/inlinebot.py b/repthon/core/inlinebot.py index 0d66bed..a6c975e 100644 --- a/repthon/core/inlinebot.py +++ b/repthon/core/inlinebot.py @@ -10,9 +10,9 @@ from telethon.errors import QueryIdInvalidError from telethon.events import CallbackQuery, InlineQuery from youtubesearchpython import VideosSearch -from zthon import zedub, repversion, StartTime +from repthon import zq_lo, repversion, StartTime from ..Config import Config -from ..helpers.functions import rand_key, zedalive, check_data_base_heal_th, get_readable_time +from ..helpers.functions import rand_key, repalive, check_data_base_heal_th, get_readable_time from ..helpers.functions.utube import download_button, get_yt_video_id, get_ytthumb, result_formatter, ytsearch_data from ..plugins import mention from ..sql_helper.globals import gvarstatus @@ -45,7 +45,7 @@ def ibuild_keyboard(buttons): keyb.append([Button.url(btn[0], btn[1])]) return keyb -@zedub.tgbot.on(InlineQuery) +@zq_lo.tgbot.on(InlineQuery) async def inline_handler(event): # sourcery no-metrics builder = event.builder result = None @@ -95,7 +95,7 @@ async def inline_handler(event): # sourcery no-metrics user_list.append(u.id) sandy += " " sandy = sandy[:-1] - old_msg = os.path.join("./Zara", f"{info_type[0]}.txt") + old_msg = os.path.join("./repthon", f"{info_type[0]}.txt") try: jsondata = json.load(open(old_msg)) except Exception: