title: How to send request to Telegram bot API?
body: <p>After creating a telegram bot and gain bot token, I want to send a request to the bot API.</p>
  
  <p><a href="https://core.telegram.org/bots/api#making-requests" rel="noreferrer">This link</a> says we must send the HTTP request like this:
  <code>https://api.telegram.org/bot&lt;token&gt;/METHOD_NAME</code> and brings example for easiest method "getme" which has not any input parameters.</p>
  
  <p>Imagine I want to send some messages. I should use the <code>sendMessage</code> method which has two Required input parameters: chat_ID and text. </p>
  
  <p>Now my Questions begins:</p>
  
  <ol>
  <li><p>How can I write this sendMessage method in above request format with its parameters? I tried <code>sendMessage(param1,param2)</code> and received method not found message.</p></li>
  <li><p>What is <code>chat_id</code>? if I want to send a message to the contact, how can I know his <code>chat_id</code>?</p></li>
  </ol>
  
  <p>I searched a lot on the internet, there are plenty of projects on GitHub especially for this purpose, and honestly none of them makes any sense.
  for god's sake someone please help me. I am loosing way.</p>
  
  <p>Regards.</p>