package handler import ( tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" ) func (ah ActionHandler) ForceUpdateHandler(chatId int64, params []string) []tgbotapi.MessageConfig { if len(params) != 0 { return []tgbotapi.MessageConfig{tgbotapi.NewMessage(chatId, "usage: /forceupdate")} } ah.dbconn.UpdateData() return []tgbotapi.MessageConfig{ tgbotapi.NewMessage(chatId, "Done!")} }