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