diff --git a/scripts/telegram.mjs b/scripts/telegram.mjs
index 941a140..8904de2 100644
--- a/scripts/telegram.mjs
+++ b/scripts/telegram.mjs
@@ -4,7 +4,7 @@ import { readFileSync } from 'fs'
const pkg = readFileSync('package.json', 'utf-8')
const changelog = readFileSync('changelog.md', 'utf-8')
const { version } = JSON.parse(pkg)
-let content = `🌟Mihomo Party v${version} 正式发布\n\n`
+let content = `🌟 Mihomo Party v${version} 正式发布\n\n`
for (const line of changelog.split('\n')) {
if (line.length === 0) {
content += '\n'
@@ -17,31 +17,10 @@ for (const line of changelog.split('\n')) {
axios.post(`https://api.telegram.org/bot${process.env.TELEGRAM_BOT_TOKEN}/sendMessage`, {
chat_id: '@mihomo_party_channel',
text: content,
- parse_mode: 'HTML',
- reply_markup: {
- inline_keyboard: [
- [
- {
- text: '官方群组',
- url: 'https://t.me/mihomo_party'
- },
- {
- text: '官方频道',
- url: 'https://t.me/mihomo_party_channel'
- }
- ],
- [
- {
- text: '官方文档',
- url: 'https://mihomo.party'
- }
- ],
- [
- {
- text: '前往下载',
- url: `https://github.com/pompurin404/mihomo-party/releases/tag/v${version}`
- }
- ]
- ]
- }
+ link_preview_options: {
+ is_disabled: false,
+ url: 'https://github.com/pompurin404/mihomo-party',
+ prefer_large_media: true
+ },
+ parse_mode: 'HTML'
})