tdl icon indicating copy to clipboard operation
tdl copied to clipboard

[Bug] tdl can't upload files to private channel/group

Open the4anoni opened this issue 1 year ago • 4 comments

Describe the bug

Hi For some reason tdl crashes when I want to upload files to private channel. That doesn't matter whenever I use invite link or channel ID. Upload works when uploading to Saved Messages.

To Reproduce

  1. Create private channel on telegram
  2. Try to upload files to it using tdl -p /path/to/files -c 'channel_id'

Expected behavior

It should start uploading files

Version

0.17.1 release build

Which OS are you running tdl on?

Linux

Additional context

No response

the4anoni avatar Jun 16 '24 07:06 the4anoni

What's your command and flags?

iyear avatar Jun 16 '24 07:06 iyear

What's your command and flags?

root@elitdesk:/opt/tdl# ./tdl up -p /mnt/Pula -c '[redacted-chat-id]'
Files count: 2386
Error: callback:
    github.com/gotd/td/telegram.(*Client).Run.func3
        github.com/gotd/[email protected]/telegram/connect.go:151
  - get target peer:
    github.com/iyear/tdl/app/up.Run
        github.com/iyear/tdl/app/up/up.go:49
  - failed to get result from [redacted-chat-id]: got empty result for chat [redacted-chat-id]

the4anoni avatar Jun 16 '24 17:06 the4anoni

@iyear any news on this? I really need this feature to work.

BTW Uploading to private groups doesn't work too.

the4anoni avatar Jun 22 '24 10:06 the4anoni

Seems to be issue with new invite link and short ID format, it works fine with old ID format.

the4anoni avatar Jun 22 '24 11:06 the4anoni