diff options
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/tgbot.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go index 973ee97f..0b301e29 100644 --- a/web/service/tgbot.go +++ b/web/service/tgbot.go @@ -13,6 +13,7 @@ import ( "x-ui/util/common" "x-ui/xray" + "github.com/gin-gonic/gin" "github.com/mymmrac/telego" th "github.com/mymmrac/telego/telegohandler" tu "github.com/mymmrac/telego/telegoutil" @@ -500,6 +501,12 @@ func (t *Tgbot) SendReport() { } } +func (t *Tgbot) SendBackUP(c *gin.Context) { + for _, adminId := range adminIds { + t.sendBackup(int64(adminId)) + } +} + func (t *Tgbot) getServerUsage() string { var info string //get hostname |
