title: Adding chat functionality to a game using telegram api
body: <p>I want to add chat functionality to a game I have developed using Unity, and I'm going to use Telegram for that. I didn't found telegram api documentation enough helpful, and it seemed to have steep learning curve specially for advanced features.</p>
  
  <p>So I searched for something that could give me a high level tool, and I found <a href="https://github.com/vysheng/tg" rel="nofollow noreferrer">Telegram Cli</a> (<a href="https://github.com/luckydonald/pytg" rel="nofollow noreferrer">also in Python</a>) and <a href="https://core.telegram.org/bots/api" rel="nofollow noreferrer">Telegram Bot Api</a>. But I don't know that they can be used to develop a chat app. Telgeram Bot is suggesting that is used for creating telgeram bots, not chat app instances. Also Telegram Cli seemed to be a command line version of desktop app.</p>
  
  <p>Anyway what I want to add is chatting with friends, adding other players to friend list, and other thing that a chat application has.</p>
  
  <p>My question is: Can I use either telgeram bot api or telegram cli to create something like a chat application? or I have to use Telegram Api and MTProto?
  If I have to use the second method, I would really appreciate some sample code or a simple guide.</p>
  
  <p>Also I have read other questions like <a href="https://stackoverflow.com/questions/24330922/sending-messages-with-telegram-apis-or-cli">this</a> and <a href="https://stackoverflow.com/questions/30661644/how-to-implement-authorization-using-a-telegram-api">this</a>. Second one is really good, but I don't understand VB.net. Some C-Like language or python is really better.</p>
  
  <p>and I have read documentation pages like <a href="https://core.telegram.org/mtproto/samples-auth_key" rel="nofollow noreferrer">Creating an Authorization Key (Sample)</a> or <a href="https://core.telegram.org/mtproto/auth_key" rel="nofollow noreferrer">Creating an Authentication Key</a>, and they weren't enough helpful. TL Language is quite complicated too (IMHO).</p>
  
  <p><strong>Edit:</strong> Since it might be ambiguous, I want to use Telegram Api to add chat In my game. </p>