title: sending message by user id in c# bot
body: <p>i'm trying to send message to People user name for example my friends username is @...
  but no thing happend 
  no Error
  and no send 
  can i use this library ?
  or just with tlsharp?
  how can i found apiid and hashid for my bot?</p>
  
  <p>using Telegram.Bot;</p>
  
  <p>and </p>
  
  <pre><code> public partial class Form1 : Form
      {
         Telegram.Bot. TelegramBotClient bot = new TelegramBotClient("token");
  
          Thread a;
               public Form1()
          {
              InitializeComponent();
          }
  
  
          public void GetUpdates()
          {
              int offset = 0;
              while (true)
              {
  
                  Telegram.Bot.Types.Update[] updates = 
                   bot.GetUpdatesAsync(offset).Result;
  
                  foreach (var update in updates)
                  {
  
                      offset = update.Id + 1;
                      if (update.Message == null)
                          continue;
  
                      var from = update.Message.From.FirstName;
                      var text = update.Message.Text;
                     string  chatid = update.Message.Chat.Id;
                      string username = update.Message.From.Username;
                      // label1.BeginInvoke(delegate { label1.Text = label1.BeginInvoke(delegate { label1.Text = string.Format("sender:{0}\ntext:{1}\ncatid:{2}", from, text, chatid); }); });
                    // lblshow.Text = string.Format("sender:{0}\ntext:{1}\ncatid:{2}", from, text, chatid);
                    //label1.Text = string.Format("sender:{0}\ntext:{1}\ncatid:{2}", from, text, chatid);
                      this.BeginInvoke((System.Windows.Forms.MethodInvoker)delegate () {textBox1.Text = string.Format("sender:{0}\ntext:{1}\ncusername:{2}", from, text, username); });
                    bot.SendTextMessageAsync( chatid, "سلام بر شما");
                      //is this correct for send to people? 
                      bot.SendTextMessageAsync("@Hoda.....", "hi");
  
  
                  }
  
  
  
  
              }
  </code></pre>