sync function example
This commit is contained in:
parent
035796a549
commit
f44b2ff7f7
13
README.md
13
README.md
|
@ -69,11 +69,14 @@ func main() {
|
||||||
IgnoreFileNames: false,
|
IgnoreFileNames: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
logVerbosity := client.WithLogVerbosity(&client.SetLogVerbosityLevelRequest{
|
_, err := client.SetLogVerbosityLevel(&client.SetLogVerbosityLevelRequest{
|
||||||
NewVerbosityLevel: 0,
|
NewVerbosityLevel: 1,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
tdlibClient, err := client.NewClient(authorizer, logVerbosity)
|
log.Fatalf("SetLogVerbosityLevel error: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
tdlibClient, err := client.NewClient(authorizer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("NewClient error: %s", err)
|
log.Fatalf("NewClient error: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue