title: How can i use telegram lib to auth and send message to my phone number in java?
body: <p>Im trying to connect my java project to my phone number, i already have the app_id and the hash generated by Telegram.
  Im using <a href="https://github.com/rubenlagus/TelegramApi" rel="nofollow noreferrer">https://github.com/rubenlagus/TelegramApi</a> this library imported to my pom project, but im not understanding how can i use the app_id, ip and hash that telegram generated for me to authenticate and send a simple "hi" message.</p>
  
  <pre><code>    AppInfo appInfo = new AppInfo(appId,"devicemodel","systemversion","appversion","langcode");
      TelegramApi api = new TelegramApi(AbsApiState, AppInfo, ApiCallback); 
  </code></pre>
  
  <p>I can initialize the variable AppInfo , i have de app_id, do i need to put real data(devicemodel,systemversion,appversion,langcode) to the rest of the required fields?</p>
  
  <p>How can i intialize the Variables AbsApiState and ApiCallback ?</p>
  
  <p>I searched many documentation and examples on the Internet, it is really simple to create a bot to communicate but i want to send message user to user, not bot to user in the future.</p>
  
  <p>Thank you !</p>