This commit is contained in:
@@ -4,13 +4,13 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
"valera/internal/db"
|
||||
"valera/internal/states"
|
||||
|
||||
"valera/internal/modules/times"
|
||||
|
||||
tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
|
||||
"golang.org/x/exp/slices"
|
||||
|
||||
"valera/internal/db"
|
||||
"valera/internal/modules/times"
|
||||
"valera/internal/states"
|
||||
)
|
||||
|
||||
var names = []string{
|
||||
@@ -81,7 +81,7 @@ func (s *statBotState) GetHandler() (string, func(http.ResponseWriter, *http.Req
|
||||
|
||||
func (s *statBotState) sendStatToChatAfter(chatID int64, prefix string, t time.Time) error {
|
||||
msgText := prefix
|
||||
stat, err := s.dataBase.GetStatAfter(chatID, t)
|
||||
stat, err := s.dataBase.GetStatBetween(chatID, t, times.GetNow())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user