add AddUserInChat

This commit is contained in:
2022-04-25 02:54:43 +07:00
parent 6ccd5b478e
commit 3005afda25
2 changed files with 25 additions and 0 deletions
+3
View File
@@ -80,6 +80,9 @@ func run() {
text := update.Message.Text
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))