Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Chatbot 如何在sendPhoto中启用HTML? consthtml=`something` bot.sendPhoto(聊天ID、图片、{ 描述:html, 解析模式:“HTML” })_Chatbot_Telegram Bot_Node Telegram Bot Api - Fatal编程技术网

Chatbot 如何在sendPhoto中启用HTML? consthtml=`something` bot.sendPhoto(聊天ID、图片、{ 描述:html, 解析模式:“HTML” })

Chatbot 如何在sendPhoto中启用HTML? consthtml=`something` bot.sendPhoto(聊天ID、图片、{ 描述:html, 解析模式:“HTML” }),chatbot,telegram-bot,node-telegram-bot-api,Chatbot,Telegram Bot,Node Telegram Bot Api,它的半工作标签不会出现在文本中,但也不会做任何事情。 我做错了什么?工作正常,我只是瞎了眼) 在夜间模式下,粗体文字和普通文字看起来非常相似。工作正常,我只是瞎了眼) 在夜间模式下,粗体和普通文本看起来非常相似 const html = `<b>something</b>` bot.sendPhoto(chatId, picture, { caption: html, parse_mode: 'HTML' })

它的半工作标签不会出现在文本中,但也不会做任何事情。
我做错了什么?

工作正常,我只是瞎了眼)
在夜间模式下,粗体文字和普通文字看起来非常相似。

工作正常,我只是瞎了眼) 在夜间模式下,粗体和普通文本看起来非常相似

const html = `<b>something</b>`

      bot.sendPhoto(chatId, picture, {
         caption: html,
         parse_mode: 'HTML'
})