mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-04-28 09:15:57 +00:00
hf: replace all ">" and "<" in username (#37)
This commit is contained in:
parent
7120644945
commit
4e4232c45e
@ -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…
x
Reference in New Issue
Block a user