如何获取频道成员电报

2024-05-19 01:41:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用了这个,client.iter_participants(channel, aggressive=True),但是在30k中只有4k个用户 使用

while True:
    participants = client(GetParticipantsRequest(
        my_channel, ChannelParticipantsSearch(''), offset, limit,
        hash=0
    ))
    if not participants.users:
        break
    all_participants.extend(participants.users)
    offset += len(participants.users)

同样的道理


Tags: 用户clienttruemychannelhashusersoffset

热门问题