I want to use Bold tag example: <b>Hiii</b>
to send my messages to user on running of node server.
I am using : npm Tgfancy
Node
const chatId = '-xxxxxx';
const token = '566470572:ffffff';
const bot = new Tgfancy(token, {
// all options to 'tgfancy' MUST be placed under the
// 'tgfancy' key, as shown below
tgfancy: {
option: "value",
},
});
bot.sendMessage(parse_mode='HTML', chatId, replyText);
How can I parse HTML with that?
I have my content but its not tagging with bold or any other HTML tags.
My code
var replyText = " Signal #"+coinName+ " has reached 1st target! " +profit+ "% profit
Current Price:" +liveCoinPrice+ "
Duration: " +difference + "
Note: Message from live coin high node server";
Here, I want to bold coinName
, profit
, etc.
Output
Any help would be thankful.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…