// 
// telegram
// 

const config = require('../app-config').telegram;
const chat = config[process.env.NODE_ENV];

const bus = require('../bus.js');
const Telegraf = require('telegraf')

const {BOT_TOKEN} = config;

const client = new Telegraf(BOT_TOKEN)

client.on('text', (ctx, next) => {
	const room = ctx.message.chat.title;
	if (room === chat.title) {
		const name = ctx.message.from.username;
		const message = ctx.message.text;
		const network = 'TELEGRAM';

        bus.emit('message', { network, room, name, message});

        next();
	}
});
client.startPolling();

function send ({name, message}) {
	client.telegram.sendMessage(chat.id, `<${name}> ${message}`)
}

module.exports = { client, send };
@@ -636,16 +636,19 @@
 age(
+%0A%09%09
 chat.id,
  %60%3C$
@@ -647,20 +647,28 @@
 .id,
- %60%3C
+%0A%09%09%60%3Cb%3E
 $%7Bname%7D
-%3E 
+%3C/b%3E%5Cr
 $%7Bme
@@ -674,17 +674,44 @@
 essage%7D%60
-)
+,%0A%09%09%7Bparse_mode: 'HTML'%7D%0A%09);
 %0A%7D%0A%0Amodu
@@ -740,8 +740,9 @@
  send %7D;
+%0A

Change reply format in telegram