diff --git a/routes.js b/routes.js index 4ff84ea..0f7e6af 100644 --- a/routes.js +++ b/routes.js @@ -41,9 +41,11 @@ const events = [ event: 'new_chat_members', action: context => { const username = context.update.message.from.username; - context.reply(`selamat datang @${username} silahkan perkenalkan diri kak`); + const firstname = context.update.message.from.first_name; + const lastname = context.update.message.from.last_name; + context.reply(`selamat datang **${firstname} ${lastname}** @${username} silahkan perkenalkan diri kak`); }, }, ]; -module.exports = [...hears, ...commands, ...events]; \ No newline at end of file +module.exports = [...hears, ...commands, ...events];