From c24de24ca49a05a9e92564558eb338983182e9a6 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 24 Feb 2026 23:12:18 +0800 Subject: [PATCH] chore: ruff format --- astrbot/core/platform/sources/telegram/tg_adapter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/astrbot/core/platform/sources/telegram/tg_adapter.py b/astrbot/core/platform/sources/telegram/tg_adapter.py index abf6a09ad..0e7ac5b10 100644 --- a/astrbot/core/platform/sources/telegram/tg_adapter.py +++ b/astrbot/core/platform/sources/telegram/tg_adapter.py @@ -1,8 +1,8 @@ import asyncio +import os import re import sys import uuid -import os from apscheduler.schedulers.asyncio import AsyncIOScheduler from telegram import BotCommand, Update @@ -22,13 +22,13 @@ from astrbot.api.platform import ( register_platform_adapter, ) from astrbot.core.platform.astr_message_event import MessageSesion -from astrbot.core.utils.astrbot_path import get_astrbot_temp_path -from astrbot.core.utils.media_utils import convert_audio_to_wav from astrbot.core.star.filter.command import CommandFilter from astrbot.core.star.filter.command_group import CommandGroupFilter from astrbot.core.star.star import star_map from astrbot.core.star.star_handler import star_handlers_registry -from astrbot.core.utils.io import download_file, download_image_by_url, file_to_base64 +from astrbot.core.utils.astrbot_path import get_astrbot_temp_path +from astrbot.core.utils.io import download_image_by_url +from astrbot.core.utils.media_utils import convert_audio_to_wav from .tg_event import TelegramPlatformEvent