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 \nCurrent Price:" +liveCoinPrice+ "\nDuration: " +difference + "\nNote: Message from live coin high node server";
Here, I want to bold coinName
, profit
, etc.
Output
Any help would be thankful.