How to programmatically extract contacts that have telegram account and show in my app?
Contacts that have the telegram account are displayed as shown below.
Follow below steps
Get the account MIME type for telegram.
Have the content cursor to query for telegram contacts.
For details on how to do it. check out this link