send message intelegram RRS feed

  • Question

  • User-775536502 posted


    i am new at this issu 

    i looking for tutorial to send telegram message from asp.net web form 

    if ther is some video tutorial from start to end how to send message 

    i know how to send mail from web site but telegram is very difficult for me 

    so please need help like a child 

    Thursday, March 11, 2021 1:17 PM

All replies

  • User475983607 posted

    What is an "intelegram"? 

    Thursday, March 11, 2021 1:35 PM
  • User303363814 posted

    I suspect this is a reference to Telegram (software) - Wikipedia

    I suggest that you start by studying Telegram APIs 

    which pretty quickly takes you to Getting started with TDLib (telegram.org)

    From there the menu entry "Sending a message" might catch your eye.

    Reading past the first paragraph, you might notice C# examples.

    Did you put any effort at all into solving your own problem?

    Thursday, March 11, 2021 11:06 PM
  • User-189459990 posted

    Here is an unofficial package "TLSharp" maybe you can refer to. According to its "Starter Guide",  you can install the Nuget package from "Project -> Manage Nuget Packages...". Then you can try to call method "client.SendMessageAsync()" to send a message to the specified user.

      //get available contacts
      var result = await client.GetContactsAsync();
      //find recipient in contacts
      var user = result.Users
    	  .Where(x => x.GetType() == typeof (TLUser))
    	  .FirstOrDefault(x => x.Phone == "<recipient_phone>");
      //send message
      await client.SendMessageAsync(new TLInputPeerUser() {UserId = user.Id}, "OUR_MESSAGE");

    You can find a simple example of using "TLSharp" in the thread "How to use Telegram API in C# to send a message". In addition, there are other ways in this link for reference, such as creating a Telegram.

    Friday, March 12, 2021 2:58 AM
  • User-775536502 posted


    Monday, March 15, 2021 5:59 AM