1

Using the Madelineproto PHP library how can one fetch the list of all participants.

Here is a code snippet that fetches the list of recent participants.

$participantsInfo = $telegramClient->channels->getParticipants([
  'channel' => 'channel#1246538196',
  'filter' => ['_' => 'channelParticipantsContacts'],
  'offset' => 0,
  'limit' => 100
]);

The list of supported filters is here. However, I cannot see a filter that would allow fetching all participant's info.

Of course, an alternate tedious way would be to run the code snippet periodically and curate the list of participants.

qwertynik
  • 118
  • 2
  • 10

1 Answers1

-3

'channel' => '-1246538196',

Lexa Dv
  • 1
  • 1
  • what exactly do you not understand? 'channel' => 'channel#1246538196' replace 'channel' => '-1246538196', – Lexa Dv Jan 27 '22 at 15:14