add AddUserInChat
This commit is contained in:
parent
3005afda25
commit
c4a39056d8
4
main.go
4
main.go
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user