So I'm trying to implement the logging of telegram chats into my ELK storage in a proper way, and the existing solution with tgcli is too old (I also have a PoC which logs message edits from Android client via Xposed, but its implemented on top of UI level and is ineffective)
I need to receive edits/deletion of messages, and do it with client Telegram API.
Spent a day on researching it:
- support for editing messages appeared in May 15, 2016 (telegram blog)
- telegram-cli's tgl library is 2 years old and most likely has no support for that layer
- I looked into telegramdesktop source as it was very promising, unfortunately their git history has no scheme changes poiting to edit support.
- And the official layer version list is truncated. Security via obscurity eh.
- from some tests done with golang library used in shelomentsevd/telegramgo, edits in supergroup are handled by TL_updateChannelTooLong message
Now I don't want to lose more time picking the libraries/sources. So, I'm asking about the experience with either of the following libraries, I'm looking for exactly one library which will allow to implement the required features fast - for someone who doesn't want to dive deep into MTProto's specifics.
- sochix/TLSharp is missing explicit examples about getting edits. Probably would be hard
- danog/MadelineProto seems like a good place to start
- there are also tdlib, libqtelegram, TelegramAPI