From 8bc8f95197c2ee48cf8ccfafa8fa36305999efd4 Mon Sep 17 00:00:00 2001 From: meoacgx Date: Fri, 19 Dec 2025 20:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=B7=B1=E5=BA=A6=E6=8E=A2=E6=B5=8B=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Telegram/AccountTelegramToolsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TelegramPanel.Core/Services/Telegram/AccountTelegramToolsService.cs b/src/TelegramPanel.Core/Services/Telegram/AccountTelegramToolsService.cs index 427b561..be9767d 100644 --- a/src/TelegramPanel.Core/Services/Telegram/AccountTelegramToolsService.cs +++ b/src/TelegramPanel.Core/Services/Telegram/AccountTelegramToolsService.cs @@ -364,7 +364,7 @@ public class AccountTelegramToolsService return new CreateChannelProbeResult(false, true, "Telegram 返回 FROZEN_METHOD_INVALID(创建频道接口被冻结)"); } - var channel = updates.Chats.Values.OfType().FirstOrDefault(); + var channel = updates.Chats.Values.OfType().FirstOrDefault(); if (channel == null) return new CreateChannelProbeResult(false, false, "创建测试频道失败:未返回 Channel"); @@ -372,7 +372,7 @@ public class AccountTelegramToolsService { // 立即删除,避免留下垃圾频道 var input = new InputChannel(channel.id, channel.access_hash); - await client.Invoke(new TL.Channels_DeleteChannel { channel = input }); + await client.Channels_DeleteChannel(input); } catch (Exception ex) {