iyear / tdl

📥 A Telegram toolkit written in Golang
https://docs.iyear.me/tdl
GNU Affero General Public License v3.0
4.17k stars 424 forks source link

[Bug] Commands tdl dl -u and tdl login -T qr Do Not Execute #615

Open YooPita opened 4 months ago

YooPita commented 4 months ago

Describe the bug

When attempting to use the tdl tool with the commands tdl dl -u https://t.me/telegram/193 or tdl login -T qr, nothing happens. The cursor simply blinks, and the commands do not produce any output or perform any visible action.

To Reproduce

Open the console. Enter the command tdl login -T qr. Observe that the cursor blinks, and no further output or action occurs.

Expected behavior

login or download chat

Version

Version: 0.17.0 Commit: 95120c0 Date: 2024-04-21T14:07:16Z

go1.21.9 windows/amd64

Which OS are you running tdl on?

Windows

Additional context

It's possible that there may be an issue with existing tdl data, but I am unsure how to delete or reset this data to test if it resolves the issue.

I used the debug flag but it didn't work

YooPita commented 4 months ago

I waited until the program finished running and this is what I got:

C:\Users\user>tdl dl -u https://t.me/telegram/193
Error: group:
    github.com/gotd/td/mtproto.(*Conn).Run
        github.com/gotd/td@v0.99.2/mtproto/conn.go:214
  - task userCallback:
    github.com/gotd/td/tdsync.(*LogGroup).Go.func1
        github.com/gotd/td@v0.99.2/tdsync/log_group.go:48
  - initConnection:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init
        github.com/gotd/td@v0.99.2/telegram/internal/manager/conn.go:230
  - invoke:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init.func1
        github.com/gotd/td@v0.99.2/telegram/internal/manager/conn.go:221
  - rpcDoRequest:
    github.com/gotd/td/mtproto.(*Conn).Invoke
        github.com/gotd/td@v0.99.2/mtproto/rpc.go:44
  - retryUntilAck:
    github.com/gotd/td/rpc.(*Engine).Do
        github.com/gotd/td@v0.99.2/rpc/engine.go:141
  - retry limit reached after 1 attempts
StarTaleLife commented 4 months ago

you need proxy

YooPita commented 4 months ago

you need proxy

>tdl login -T qr --proxy socks5://31.170.22.127:1080
WARN: If data exists in the namespace, data will be overwritten
Error: group:
    github.com/gotd/td/mtproto.(*Conn).Run
        github.com/gotd/td@v0.99.2/mtproto/conn.go:214
  - task userCallback:
    github.com/gotd/td/tdsync.(*LogGroup).Go.func1
        github.com/gotd/td@v0.99.2/tdsync/log_group.go:48
  - initConnection:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init
        github.com/gotd/td@v0.99.2/telegram/internal/manager/conn.go:230
  - invoke:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init.func1
        github.com/gotd/td@v0.99.2/telegram/internal/manager/conn.go:221
  - rpcDoRequest:
    github.com/gotd/td/mtproto.(*Conn).Invoke
        github.com/gotd/td@v0.99.2/mtproto/rpc.go:44
  - retryUntilAck:
    github.com/gotd/td/rpc.(*Engine).Do
        github.com/gotd/td@v0.99.2/rpc/engine.go:141
  - retry limit reached after 1 attempts

I tested the proxy in the telegram client and everything worked, but not in the console

iyear commented 3 days ago

Can you try v0.17.4?