Hotfix: replace all ">" and "<" in username #37

Merged
ihatenodejs merged 1 commit from fix-escaping-issue into main 2025-04-15 03:38:00 +00:00
Showing only changes of commit fdfc152f11 - Show all commits

View file

@ -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(" ");