From 9406962dd13d751055524e45f2f6913e8d5f6414 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 13 Dec 2019 10:53:47 +0800 Subject: [PATCH] update version --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8db58cb..c33d968 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "log" + "runtime" "sync" "time" @@ -61,12 +62,13 @@ func main() { tdlib.SetFilePath("./errors.txt") // Create new instance of client + sysv := fmt.Sprintf("%s (%s)", runtime.GOOS, runtime.GOARCH) client := tdlib.NewClient(tdlib.Config{ APIID: "187786", APIHash: "e782045df67ba48e441ccb105da8fc85", SystemLanguageCode: "en", DeviceModel: "ChatWarsClient", - SystemVersion: "0.1", + SystemVersion: sysv, ApplicationVersion: "0.1", UseMessageDatabase: true, UseFileDatabase: true,