Search code examples
c#telegram-apiwtelegramclient

Listener for new AdminEvents WTelegramClient


There is a task that requires me to process every person who joins/leaves the telegram channel. I found the WTelegramClient library. How can I use it to implement a handler for this kind of action? I need to process the records that are kept here: Example

I tried working with https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs?ts=4#L23, but it doesn't know how to handle this kind of message.


Solution

  • Unfortunately ChannelAdminLogEvent are not pushed by Telegram as updates.

    The only solution is to poll for them with Channels_GetAdminLog