Add version and log

This commit is contained in:
Alireza Ahmadi
2023-03-24 12:24:12 +01:00
parent 6ed8ff8e05
commit 9e902fc82f
7 changed files with 95 additions and 23 deletions

View File

@@ -276,6 +276,7 @@ func (t *Tgbot) getServerUsage() string {
name = ""
}
info = fmt.Sprintf("💻 Hostname: %s\r\n", name)
info += fmt.Sprintf("🚀X-UI Version: %s\r\n", config.GetVersion())
//get ip address
var ip string
var ipv6 string