i have one question please;
how i can make Class or Method with Telegram API like :https://core.telegram.org/methods from TLSharp Class ?
in the TLSharpTest.cs i have some example , but i can’t understand how i can write Telegram API in C# 🙁
if i want receive message , what i do ?
of curce i try from Example in https://github.com/sochix/TLSharp#contributing
but in this method :
public InitConnectionRequest(int someParameter)
{
_someParameter = someParameter;
}
say : Method must have a return type ,
why ?
2
Answers
You can find practical examples in my project: https://github.com/UnoSD/TgMsgSharp
I have used TLSharp to backup Telegram messages. You should create an instance of TelegramClient, connect, request the auth code, create an auth with the code and then you can invoke all the methods on the TelegramClient.
Beware that not all the methods from your Telegram (you link) are supported, there are just few available.
Agha Mehdi,
This example is very useful: