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
@@ -27,7 +27,7 @@ func NewPauseBotState(bot *tgbot.BotAPI, dataBase *db.DB) states.BotState {
}
}
func (s *pauseBotState) Do(text string, chatInfo *db.ChatInfo, username string) error {
func (s *pauseBotState) Do(text string, chatInfo *db.ChatInfo) error {
if chatInfo.Status == string(db.UserStatePause) {
duration, err := getDuration(text)
if err != nil {