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