Bot welcome message fix for self-welcomes
This commit is contained in:
@@ -17,7 +17,7 @@ func (w *Welcomer) groupWelcomeUser(update *tgbotapi.Update, newUser *tgbotapi.U
|
||||
profileRaw, profileExist := c.Users.GetProfile(playerRaw.ID)
|
||||
|
||||
message := "*Бот Инстинкта приветствует тебя, *@"
|
||||
message += newUser.UserName
|
||||
message += c.Users.FormatUsername(newUser.UserName)
|
||||
message += "*!*\n\n"
|
||||
|
||||
if profileExist {
|
||||
@@ -54,4 +54,4 @@ func (w *Welcomer) groupStartMessage(update *tgbotapi.Update) string {
|
||||
c.Bot.Send(msg)
|
||||
|
||||
return "ok"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user