feat(chat ls): support channel that has more than 101 topics
fix #546
I compiled it for linux/amd64 and it seems working.
@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 https://github.com/gotd/td/blob/f1af1992aca6e6b92562892fb8a37316ddae4d8b/tg/tl_channels_get_forum_topics_gen.go#L41
@pgotsis @XMLHexagram Do you have any forums available for testing?
I do. I will check in the next 1-2 days.
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.
@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.
@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