feat: approve button

This commit is contained in:
Vaala Cat
2023-08-28 15:57:58 +08:00
parent 46cf57764c
commit 5528766c13
15 changed files with 469 additions and 176 deletions

15
services/tgbot/list.go Normal file
View File

@@ -0,0 +1,15 @@
package tgbot
import (
"tg-mc/conf"
"tg-mc/services/utils"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/sirupsen/logrus"
)
func ListHandler(m *tgbotapi.Message, i interface{}) {
logrus.Infof("id is %d", m.Chat.ID)
msg := tgbotapi.NewMessage(m.Chat.ID, utils.GetAlivePlayer())
conf.Bot.Send(msg)
}