add AddUserInChat

This commit is contained in:
Владимир Фёдоров 2022-04-25 02:55:31 +07:00
parent 3005afda25
commit c4a39056d8
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,6 @@ func run() {
chatID := update.Message.Chat.ID chatID := update.Message.Chat.ID
username := update.Message.From.UserName username := update.Message.From.UserName
_ = db.AddUserInChat(chatID, username)
if strings.Contains(strings.ToLower(text), tag) { if strings.Contains(strings.ToLower(text), tag) {
_, _ = bot.Send(tgbot.NewMessage(chatID, allUsers)) _, _ = bot.Send(tgbot.NewMessage(chatID, allUsers))
} }
@ -98,5 +96,7 @@ func run() {
case commands.Ping: case commands.Ping:
_, _ = bot.Send(tgbot.NewMessage(chatID, "pong")) _, _ = bot.Send(tgbot.NewMessage(chatID, "pong"))
} }
_ = db.AddUserInChat(chatID, username)
} }
} }