From f44b2ff7f7e4fd77a1708016397b5f29e16dfd65 Mon Sep 17 00:00:00 2001 From: Aleksandr Zelenin Date: Thu, 27 Jan 2022 08:59:01 +0300 Subject: [PATCH] sync function example --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 886f12e..7941c6d 100644 --- a/README.md +++ b/README.md @@ -69,11 +69,14 @@ func main() { IgnoreFileNames: false, } - logVerbosity := client.WithLogVerbosity(&client.SetLogVerbosityLevelRequest{ - NewVerbosityLevel: 0, - }) - - tdlibClient, err := client.NewClient(authorizer, logVerbosity) + _, err := client.SetLogVerbosityLevel(&client.SetLogVerbosityLevelRequest{ + NewVerbosityLevel: 1, + }) + if err != nil { + log.Fatalf("SetLogVerbosityLevel error: %s", err) + } + + tdlibClient, err := client.NewClient(authorizer) if err != nil { log.Fatalf("NewClient error: %s", err) }