Cordova – Show specific user pages in Telegram

I am creating an application through phonegap, and I want to open a Telegram group or channel from my application.

In other words, when I click When there is a group, Telegram opens and the group is displayed to the user.

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

< /p>

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

I tried to open tg:resolve in the browser? domain = username to do this, but my browser gave me an error:

Net:: ERR_UNKNOWN_URL_SCHEME

< /div>

The answer is simple.
The telegram link follows the sheme: https://t.me/

So, if the group is a public super Group and has a public username (e.g. @newchat), you can refer to it via this link (e.g. t.me/newschat)

I am creating an application via phonegap Program, I want to open a Telegram group or channel from my app.

In other words, when I click on a group, Telegram opens and the group is displayed to the user.

< p>I used the following code, but I don’t know how to switch to the specific
@username page:

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

I tried to open the tg: resolve? domain = username to do this, but my browser gave me an error:

Net:: ERR_UNKNOWN_URL_SCHEME

Answer Very simple.
The telegram link follows the sheme: https://t.me/

So, if the group is a public super group and has a public username (e.g. @newchat) , You can refer to it via this link (e.g. t.me/newschat)

Leave a Comment

Your email address will not be published.