add AddUserInChat
This commit is contained in:
@@ -82,8 +82,6 @@ func run() {
|
||||
chatID := update.Message.Chat.ID
|
||||
username := update.Message.From.UserName
|
||||
|
||||
_ = db.AddUserInChat(chatID, username)
|
||||
|
||||
if strings.Contains(strings.ToLower(text), tag) {
|
||||
_, _ = bot.Send(tgbot.NewMessage(chatID, allUsers))
|
||||
}
|
||||
@@ -98,5 +96,7 @@ func run() {
|
||||
case commands.Ping:
|
||||
_, _ = bot.Send(tgbot.NewMessage(chatID, "pong"))
|
||||
}
|
||||
|
||||
_ = db.AddUserInChat(chatID, username)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user