iyear / tdl

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

[Bug] Downloading paid post / 下载付费帖子 #726

Open berbunda opened 1 month ago

berbunda commented 1 month ago

Describe the bug

Is it possible to download paid posts after paying for them with stars in telegram? 在电报中用星星付费后,可以下载付费帖子吗?

To Reproduce

  1. run / 发射
  2. enter link / 提供链接
  3. get error / 出错 `Error: callback: github.com/gotd/td/telegram.(*Client).Run.func3 github.com/gotd/td@v0.108.0/telegram/connect.go:151
    • iter: github.com/iyear/tdl/core/downloader.(*Downloader).Download github.com/iyear/tdl/core@v0.0.0-00010101000000-000000000000/downloader/downloader.go:59
    • can not get media from 1451775012/685 message: github.com/iyear/tdl/app/dl.(*iter).process github.com/iyear/tdl/app/dl/iter.go:164`

Expected behavior

I expect to download paid post after paying it with tg stars 我希望在使用电报明星付费后下载付费帖子

Version

Version: 0.17.4 Commit: c63abd1 Date: 2024-09-08T15:56:41Z

go1.21.13 windows/amd64

Which OS are you running tdl on?

Windows

Additional context

If this can't be done, please forgive me for creating a ticket 如果做不到,请原谅我。

ernado commented 1 month ago

I've done something similar in #581 and it worked for me for old-style (non-stars) paid media.