bot.onText(/^(ping|핑)[!]?$/i, (msg, match) => { var messageId = msg.message_id; var chatId = msg.chat.id; if (match[1].match(/ping/i)) { bot.sendMessage(chatId, 'Ping!', {reply_to_message_id: messageId}); } else if (match[1].match(/핑/)) { bot.sendMessage(chatId, '퐁!', {reply_to_message_id: messageId}); } });