diff --git a/src/commands/gsmarena.js b/src/commands/gsmarena.js index f6fce9c..db9ce08 100644 --- a/src/commands/gsmarena.js +++ b/src/commands/gsmarena.js @@ -196,7 +196,11 @@ function extractMetaData(meta, key) { module.exports = (bot) => { bot.command(['d', 'device'], spamwatchMiddleware, async (ctx) => { const userId = ctx.from.id; - const userName = ctx.from.first_name; + let userName = String(ctx.from.first_name); + + if(userName.includes("<") && userName.includes(">")) { + userName = userName.replace("<", "").replace(">", ""); + } const phone = ctx.message.text.split(" ").slice(1).join(" "); if (!phone) {