tdl icon indicating copy to clipboard operation
tdl copied to clipboard

feat(chat ls): support channel that has more than 101 topics

Open XMLHexagram opened this issue 2 years ago • 5 comments

fix #546

XMLHexagram avatar Mar 25 '24 13:03 XMLHexagram

I compiled it for linux/amd64 and it seems working.

pgotsis avatar Mar 27 '24 08:03 pgotsis

@XMLHexagram , I have used it a bit more. I retract my previous statement. It seems that it iterates "count" times over the topics, but after the 200th topic, it just iterates over the original results, with duplicates in the output.

I want to chase it myself as well. Where is the ChannelsGetForumTopicsRequest defined?

pgotsis avatar Apr 20 '24 08:04 pgotsis

@pgotsis https://github.com/gotd/td/blob/f1af1992aca6e6b92562892fb8a37316ddae4d8b/tg/tl_channels_get_forum_topics_gen.go#L41

phanirithvij avatar Apr 27 '24 06:04 phanirithvij

@pgotsis @XMLHexagram Do you have any forums available for testing?

iyear avatar Apr 30 '24 09:04 iyear

I do. I will check in the next 1-2 days.

pgotsis avatar Apr 30 '24 12:04 pgotsis

I can reproduce this issue via tdl chat ls on chat id = 1943412408 which is provide by origin issue, I am working on this issue.

XMLHexagram avatar Jun 15 '24 16:06 XMLHexagram

@iyear I test this PR on forum 1943412408 which is provided by origin issue and some other forums. It perfectly works.

I believe this PR can be merge into the main branch.

XMLHexagram avatar Jun 16 '24 07:06 XMLHexagram

@iyear u can test it by subscribe https://t.me/haijiaovideo/1 and then use chat ls -f "len(Topics)>100" -o json.

This channel is provided by #546

XMLHexagram avatar Jun 16 '24 07:06 XMLHexagram