diff --git a/index.js b/index.js index da16f5c..dfaa6a1 100644 --- a/index.js +++ b/index.js @@ -7,13 +7,13 @@ const TelegramBot = require('node-telegram-bot-api'); var botToken = '6493294406:AAGBOx9P1AShJwvL5G3EeZvS9TPAwLTMmNI' const bot = new TelegramBot(botToken, { polling: true}); let message = "出款额度恢复通知: \n出款可用额度已恢复\n 代付已经可以正常使用\n以上通知,请您知晓。\n我们为带来的不便深感抱歉,请您见谅\n\n\nNotice of restoration of withdrawal limit:\nThe amount available for withdrawals has been restored\n- Withdrawal can be used normally. " - +// MarkdownV2/HTML/Markdown格式 bot.on('message', (msg) => { console.log(`output->msg.chat`,msg) bot.sendMessage(msg.chat.id, '这是一条普通文本消息'); bot.sendMessage(msg.chat.id, '出款额度恢复通知: \n出款额度恢复通知:', { parse_mode: 'HTML' }); bot.sendMessage(msg.chat.id, '链接:bot', { parse_mode: 'HTML' }); - bot.sendMessage(msg.chat.id, '
链接:
', { parse_mode: 'HTML' }); + bot.sendMessage(msg.chat.id, '链接:\n链接:', { parse_mode: 'HTML' }); bot.sendMessage(msg.chat.id, message, { parse_mode: 'HTML' }); });