title: How to send request to telegram for use telegram api
body: <p>I have a app using the telegram API.</p>
  
  <p>And I have an <code>api_id</code> and an <code>api_hash</code>.</p>
  
  <p>Now I want to register a user to his telegram account (using the API).</p>
  
  <p>I read <a href="https://core.telegram.org/api/auth" rel="nofollow noreferrer">this page</a>.
  It said  for example for <a href="https://core.telegram.org/method/auth.sendCode" rel="nofollow noreferrer"><code>auth.sendCode</code></a> to use this code:</p>
  
  <pre><code>auth.sentCode#efed51d9 phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode;
  auth.sentAppCode#e325edcf phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode;
  ---functions---
  auth.sendCode#768d5f4d phone_number:string sms_type:int api_id:int api_hash:string lang_code:string = auth.SentCode;
  </code></pre>
  
  <p>Should I send the URL or what?
  For example in the telegram bot API for <code>get me</code> function we should send requests to this url:</p>
  
  <pre><code>https://api.telegram.org/bot#key/getme
  </code></pre>
  
  <p>Is the problem this example?</p>
  
  <p>If there is a result on <strong>github</strong> or <strong>here</strong> please tell me .</p>