title: How to Open Mobile Telegram client
body: <p>Is it possible to open mobile Telegram client with link?
  For example</p>
  
  <pre><code>imgVk.setOnClickListener(new OpenLinkListener(getActivity(), "vk.com/id23**36*35"));
  </code></pre>
  
  <p>is opening userpage in mobile Vk client.</p>
  
  <p>But, </p>
  
  <pre><code>imgTelegramMe.setOnClickListener(new OpenLinkListener(getActivity(), "web.telegram.org/#/im?p=@Artem_NeFRiT"));
  </code></pre>
  
  <p>is not working... It just opens the web browser...</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>imgTelegramMe.setOnClickListener(new OpenLinkListener(getActivity(), "telegram.org/#/im?p=@Artem_NeFRiT"));
  </code></pre>
  
  <p>doesn't work too</p>
  
  <p><strong>SOLUTION</strong></p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("tg://resolve?domain=Artem_NeFRiT"));
              startActivity(intent);
  </code></pre>
  
  <p>but u have to check for ActivityNotFoundException if there is no mobile Telegram client.</p>