add last_time
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-09 14:47:38 +07:00
parent d1f2c359a2
commit ada1a97999
12 changed files with 30 additions and 19 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ import (
)
const (
version = "v1.7.2"
version = "v1.7.3"
)
func main() {
@@ -71,14 +71,14 @@ func main() {
text := update.Message.Text
chatID := update.Message.Chat.ID
username := update.Message.From.UserName
userInfoDTO, err := dataBase.GetChatInfo(chatID)
userInfoDTO, err := dataBase.GetChatInfo(chatID, username)
if err != nil {
log.Println(err)
continue
}
for _, s := range botStates {
if err := s.Do(text, userInfoDTO, username); err != nil {
if err := s.Do(text, userInfoDTO); err != nil {
log.Println(err)
}
}