gotd / td

Telegram client, in Go. (MTProto API)
MIT License
1.5k stars 134 forks source link

feat(tdesktop): support key_datas #825

Open ernado opened 2 years ago

ernado commented 2 years ago

There can be no key_data in latest tdesktop format

cc: @tdakkota

ernado commented 2 years ago

So while trying to load tdata:

Error: failed to read accounts:
    main.run
        /src/main.go:70
  - open key_data:
    github.com/gotd/td/session/tdesktop.ReadFS
        /go/pkg/mod/github.com/gotd/td@v0.62.0/session/tdesktop/tdesktop.go:36
  - file "key_data" not found:
    github.com/gotd/td/session/tdesktop.open
        /go/pkg/mod/github.com/gotd/td@v0.62.0/session/tdesktop/file.go:60

File tree:

tdata/
├── D877F783D5D3EF8C
│   └── maps
├── D877F783D5D3EF8Cs
└── key_datas