feat: add msg name

This commit is contained in:
Vaala Cat
2023-05-17 16:14:11 +08:00
parent b7e73e8c31
commit e516a51ebe
3 changed files with 37 additions and 35 deletions

View File

@@ -7,10 +7,12 @@ import (
)
func Run() {
go tgbot.Run(mc.SendMsg)
for {
if err := mc.Run(); err != nil {
utils.SendMsg("致命错误:" + err.Error())
go func() {
for {
if err := mc.Run(); err != nil {
utils.SendMsg("致命错误:" + err.Error())
}
}
}
}()
tgbot.Run(mc.SendMsg)
}