I'm creating an app by phonegap and I want to open Telegram groups or channels from my app.

In other mean when I click on a group , Telegram open and that group shows to user.

I used the following code but I don't know how to switch to specific @username page :

 var username = ' navigator.startApp.start("org.telegram.messenger", function(message) { /* success */ console.log(message); // => OK }, function(error) { /* error */ console.log(error); }); 

I've tried to do this by open tg:resolve?domain=username in browser but my browser give me an erro :

net::ERR_UNKNOWN_URL_SCHEME

1 Answer

The answer is simple. Telegram Links follow the sheme:

So if the group is a public supergroup and has a public username (e.g. @newchat) you can reference it by this link (e.g. )

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.