I found many examples using the bot api, however I need a simple client that implements an event when a message from a contact or group is received, as a user and not a bot (so the Telegram api, and not Bot api). TLSharp library doesn’t implement this method.
What is the best way to achieve it?
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
The provided link is old but it was a good starting point. Here is the updated working code:
There is now WTelegramClient, using the latest Telegram Client API protocol (connecting as a user, not bot).
The library is very complete but also very simple to use. Follow the README on GitHub for an easy introduction.
To monitor Update events that are pushed to the client whenever a message is posted somewhere (or other events), take a look at the ExamplesProgram_ListenUpdate.cs. It demonstrates how to print most events, including messages posted in groups/channels/private chats