I am using this telegram C# library .I am able to send the messages but Couldn’t find a way how to receive messages in this library. Please assist me.
Thanks in advance.
I am using this telegram C# library .I am able to send the messages but Couldn’t find a way how to receive messages in this library. Please assist me.
Thanks in advance.
3
Answers
It looks like that library only supports some functionality, receiving is probably not supported as it isn’t mentioned in the documentation and there is no test for it.
I am not sure about this api you have mentioned, but if receiving messages is not supported in that one, I suggest using this one
I been using it since almost 1 year ago, I made a Fun bot for my university group where people can teach the bot what to answer to certain messages it receives.
The usage is pretty simple and it have an example you can learn from.
You can also check my bot here and see its functionality.
I have this functionality(and many other) implemented in my fork
You need to create
TelegramClient
instance, subscribe toUpdateMessage
event and callStart
method.For list of possible Update object constructors see this