tdl icon indicating copy to clipboard operation
tdl copied to clipboard

[Bug] Unable to log in and download

Open nikkoozz opened this issue 1 year ago • 1 comments

Describe the bug

之前用过 没有任何问题,最近报错无法使用 用了代理,环境变量里设置 TDL_PROXY = socks5://localhost:10808 TDL_NS = admin 以下分别是登录下载的报错情况:

To Reproduce

tdl login -d "D:\soft\Telegram Desktop" Error: decrypt keyEncrypted: github.com/gotd/td/session/tdesktop.readKeyData github.com/gotd/[email protected]/session/tdesktop/key_data.go:33

  • msg_key mismatch: github.com/gotd/td/session/tdesktop.decryptLocal github.com/gotd/[email protected]/session/tdesktop/local_key.go:67

tdl dl -u https://t.me/xxx/1 -d "D:\Downloads" Error: create client: github.com/iyear/tdl/cmd.tRun github.com/iyear/tdl/cmd/root.go:159

  • create network clock: github.com/iyear/tdl/core/tclient.New github.com/iyear/tdl/[email protected]/tclient/tclient.go:47
  • read udp 192.168.0.106:54775->108.59.2.24:123: i/o timeout

Expected behavior

正常使用

Version

0.17.3

Which OS are you running tdl on?

Windows

Additional context

No response

nikkoozz avatar Jul 11 '24 02:07 nikkoozz

电脑登录tg后,再用tdl下载报错: Error: callback: github.com/gotd/td/telegram.(*Client).Run.func3 github.com/gotd/[email protected]/telegram/connect.go:151

  • not authorized. please login first

nikkoozz avatar Jul 11 '24 02:07 nikkoozz

再次运行报此错,尝试了切换tun模式就又行了

celiae avatar Aug 08 '24 21:08 celiae

电脑登录tg后,再用tdl下载报错: Error: callback: github.com/gotd/td/telegram.(*Client).Run.func3 github.com/gotd/[email protected]/telegram/connect.go:151

  • not authorized. please login first

我也是同样的报错,即使从新登陆在下载也不行。

shaoyangx avatar Aug 30 '24 05:08 shaoyangx

not authorized. please login first Perform the login operation again.

iyear avatar Sep 17 '24 05:09 iyear

I found the reason, it was caused by setting the lock screen password for the desktop client, I hope the author can optimize it in the future, thanks!

nikkoozz avatar Oct 03 '24 08:10 nikkoozz

@nikkoozz If you set the desktop client passcode, you should set flags: tdl login -p YOUR_PASSCODE

iyear avatar Oct 03 '24 08:10 iyear