sync function example

This commit is contained in:
Aleksandr Zelenin 2022-01-27 08:59:01 +03:00
parent 035796a549
commit f44b2ff7f7

View file

@ -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)
} }