update version

This commit is contained in:
shoopea 2019-12-13 10:53:47 +08:00
parent fdd2853d14
commit 9406962dd1

View File

@ -4,6 +4,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"log" "log"
"runtime"
"sync" "sync"
"time" "time"
@ -61,12 +62,13 @@ func main() {
tdlib.SetFilePath("./errors.txt") tdlib.SetFilePath("./errors.txt")
// Create new instance of client // Create new instance of client
sysv := fmt.Sprintf("%s (%s)", runtime.GOOS, runtime.GOARCH)
client := tdlib.NewClient(tdlib.Config{ client := tdlib.NewClient(tdlib.Config{
APIID: "187786", APIID: "187786",
APIHash: "e782045df67ba48e441ccb105da8fc85", APIHash: "e782045df67ba48e441ccb105da8fc85",
SystemLanguageCode: "en", SystemLanguageCode: "en",
DeviceModel: "ChatWarsClient", DeviceModel: "ChatWarsClient",
SystemVersion: "0.1", SystemVersion: sysv,
ApplicationVersion: "0.1", ApplicationVersion: "0.1",
UseMessageDatabase: true, UseMessageDatabase: true,
UseFileDatabase: true, UseFileDatabase: true,