readme fix
This commit is contained in:
parent
43d64cbc45
commit
287f0c6d4e
|
@ -49,13 +49,13 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/zelenin/go-tdlib/client"
|
"github.com/zelenin/go-tdlib/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
client.SetLogVerbosityLevel(1)
|
client.SetLogVerbosityLevel(1)
|
||||||
client.SetLogFilePath("/dev/stderr")
|
|
||||||
|
|
||||||
// client authorizer
|
// client authorizer
|
||||||
authorizer := client.ClientAuthorizer()
|
authorizer := client.ClientAuthorizer()
|
||||||
|
@ -72,8 +72,8 @@ func main() {
|
||||||
|
|
||||||
authorizer.TdlibParameters <- &client.TdlibParameters{
|
authorizer.TdlibParameters <- &client.TdlibParameters{
|
||||||
UseTestDc: false,
|
UseTestDc: false,
|
||||||
DatabaseDirectory: "./.tdlib/database",
|
DatabaseDirectory: filepath.Join(".tdlib", "database"),
|
||||||
FilesDirectory: "./.tdlib/files",
|
FilesDirectory: filepath.Join(".tdlib", "files"),
|
||||||
UseFileDatabase: true,
|
UseFileDatabase: true,
|
||||||
UseChatInfoDatabase: true,
|
UseChatInfoDatabase: true,
|
||||||
UseMessageDatabase: true,
|
UseMessageDatabase: true,
|
||||||
|
|
Loading…
Reference in a new issue