Hotfix: replace all ">" and "<" in username #37
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ module.exports = (bot) => {
|
|||
let userName = String(ctx.from.first_name);
|
||||
|
||||
if(userName.includes("<") && userName.includes(">")) {
|
||||
userName = userName.replace("<", "").replace(">", "");
|
||||
userName = userName.replaceAll("<", "").replaceAll(">", "");
|
||||
}
|
||||
|
||||
const phone = ctx.message.text.split(" ").slice(1).join(" ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue