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.
2
Answers
To solve my problem, a simpler solution was needed. I needed to enable receiving "chat_member". This tells you when someone joins or leaves the channel. Again, works for both chats and channels.
If you still need to get information from the 'Recent actions' page, there's only one option - telegram user api.
Unfortunately
ChannelAdminLogEvent
are not pushed by Telegram as updates.The only solution is to poll for them with
Channels_GetAdminLog