tgbot站点名改为自定义站点名

This commit is contained in:
mtvpls
2026-07-09 09:59:19 +08:00
parent 7e5d366fcd
commit 71105f0ca9
2 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -119,9 +119,10 @@ export async function POST(request: NextRequest) {
? overrideConfig.botToken
: savedConfig.botToken;
const siteName = (await getConfig()).SiteConfig.SiteName || 'MoonTVPlus';
await sendTelegramMessage(
String(testChatId),
'MoonTVPlus Telegram Bot 测试消息发送成功。',
`${siteName} Telegram Bot 测试消息发送成功。`,
undefined,
{
enabled: true,