lastpayout.go 401 B

1234567891011121314
  1. package handler
  2. import (
  3. tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
  4. )
  5. func (ah ActionHandler) LastPayoutHandler(chatId int64, params []string) []tgbotapi.MessageConfig {
  6. if len(params) != 0 {
  7. return []tgbotapi.MessageConfig{tgbotapi.NewMessage(chatId, "usage: /lastpayout")}
  8. }
  9. return []tgbotapi.MessageConfig{
  10. tgbotapi.NewMessage(chatId, ah.dbconn.GetLastPayout(chatId))}
  11. }