title: How to get telegram user access_hash with only using userid?
body: <p>I am creating telegram bot and telegram integrated app which creates chat groups. Application creates chat group and adds users and bot to channel.</p>
  
  <p>I want to add users outside of contact list using similar workflow</p>
  
  <ol>
  <li>App creates chat group and adds bot to channel.</li>
  <li>App adds selected users to channel and we know only user_id</li>
  </ol>
  
  <p>Some times users will be added and some times users are not added.</p>
  
  <p>After some researching it seems that users access_hash might be needed in order to invite users to channel.</p>
  
  <p>Is there a way to get users access_hash or is there another way of adding users to channel?</p>
  
  <p>As for the app I am using OpenTL client api
  <a href="https://github.com/OpenTl/OpenTl.ClientApi" rel="nofollow noreferrer">https://github.com/OpenTl/OpenTl.ClientApi</a></p>