iyear / tdl

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

[Bug] Chat Export is throwing error 400: USERNAME_NOT_OCCUPIED #700

Closed sachinkmr closed 2 months ago

sachinkmr commented 3 months ago

Describe the bug

Running the command tdl chat export -c CHAT to get chat JSON is throwing following error:

Error: callback: github.com/gotd/td/telegram.(*Client).Run.func3 github.com/gotd/td@v0.105.0/telegram/connect.go:151

To Reproduce

Run the command tdl chat export -c CHAT

Expected behavior

should generate json file having chats related data

Version

Version: 0.17.3 Commit: 6c382b8 Date: 2024-07-07T10:59:56Z

go1.21.11 linux/amd64

Which OS are you running tdl on?

Linux

Additional context

No response

iyear commented 2 months ago

You should replace the CHAT in command with specific real chat value.

CHAT can be: