晚上好,朋友们,首先为我的英语道歉。
我正在用nodejs编写代码,我想在代码中添加disable_web_page_preview,但是我不能,也不知道在哪里添加它。
Telegram.prototype.sendIn =异步函数( clientId,保护=假,gale = false){ if(!color !clientId)返回{状态:“错误”,消息:"cor e id do chat s o argumentos obrigatorios“}
let message = [];
if(gale)
message.push(`⚠️ <b>Aviso de Gale ${gale}:</b>\n`);
else
message.push(`<b>Sinal Confirmado</b>\n`);
message.push(`⏩ Entre no: ${this._getColorNameOrEmoticon(color, true)} ${this._getColorNameOrEmoticon(color, false, true)}`);
if(typeof protection === "number")
message.push(`Proteção no ${this._getColorNameOrEmoticon(protection, true)} ${this._getColorNameOrEmoticon(protection, false, true)}\n`);
message.push(`⏩ Com proteção no: ⚪`);
message.push(`<a href="https://blaze.com/pt/games/double" title="https://blaze.com/pt/games/double" target="_blank" rel="noopener noreferrer" class="text-entity-link" dir="auto">⏩ Aposte aqui</a>`);
return await this.send(message.join('\n'), clientId, { parse_mode: "HTML"} );}
发布于 2022-08-29 22:00:22
您正在查看sendMessage()方法的选项。您可以阅读电报Bot文档中的所有可用选项。它可以通过添加disable_web_page_preview: true来完成。
return await this.send(message.join('\n'), clientId, { parse_mode: "HTML", disable_web_page_preview: true } );https://stackoverflow.com/questions/73535011
复制相似问题