add AddUserInChat
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user