Asked by:
Telegram and Asp.net

Question
-
User1776860132 posted
Hi
I want to use Telegram in my web site, I wrote my web site with Asp.net & c# , I want to send the messages to a person or a group and receive them.... I found https://www.nuget.org, in this site there is a package for this..., but I don't know how to use it.
would you please help me?
Wednesday, June 24, 2015 2:28 AM
All replies
-
User670679149 posted
Hello Nazanin,
As this telegram is third party api, i ll suggest you to see the documentation first. please check the below url, you can find the documentation here...
Wednesday, June 24, 2015 3:02 AM -
User-271186128 posted
Hi nazanin_a,
Telegram and Asp.netFrom your description, I suppose you want to create a real-time communication application. If that is the case, I suggest you could use ASP.NET SignalR.
ASP.NET SignalR is a new library for ASP.NET developers that makes developing real-time web functionality easy. SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization.
For more details, please see: http://www.asp.net/signalr
http://www.asp.net/signalr/overview/guide-to-the-api/mapping-users-to-connections
You could install Microsoft ASP.NET SignalR, run the following command in the Package Manager Console:
PM> Install-Package Microsoft.AspNet.SignalR
Best Regards,
DillionThursday, June 25, 2015 5:04 AM -
User177399542 posted
Hi
Easy steps to start sending Telegram messages.
Grab library from Nu-Get:
PM> Install-Package Notificatio.TelegramClient
Implement it:
var api = NotificatioApi.Initialize("your_api_hash"); api.SendMessage("phone_number", "Your message");
Phone number must contain only digits. API hash you can find here http://www.notificatio.me/Home/Profile
Refrence: http://forums.asp.net/t/2044480.aspx?Telegram+integration+with+ASp+Net
Thursday, June 25, 2015 5:23 AM -
User1776860132 posted
Thanks.
I installed NuGet and also Package: Send messsage to Telegram with easy correctly, now I have Notificatio.TelegramClient.dll in my Bin of solution.
should something else be added to my solution?
I could find my API-Hash but
and the other question is that , now , after installing what should I do ?I can not implement it! where should I write these lines?"
again thanks
Saturday, June 27, 2015 3:05 AM