So I found out I could use a link like this in HTML:
WhatsApp
in order to let a user contact {{phone_number}} directly from a webpage (via WhatsApp web).
My question is: how to do the same but instead of WhatsApp, via Telegram?
Thank you in advance
Update (2022):
Links to phone numbers such as https://t.me/+1XXXXXXX will lead you to a web page the same as username links do, but you can only start chatting with the user if their privacy settings allows you.
Old answer:
It's NOT possible to link to Telegram like this for a phone numbers so far, because every user MUST add the phone number to their contact list before they can send a message to them by phone number. This limitation is because of Telegram privacy policy and abuse prevention. In more details, if Telegram allow this type of linking, a malicious party can fetch a web page like https://t.me/+1XXXXXXX for every possible number without passing authentication. That's most probably why Telegram doesn't have such linking feature.
However, you can link to #username of a Telegram user if he/she has any:
https://t.me/username
Welcome to StackOverflow.
You should create a link like https://telegram.me/YourUsername for that purpose.
Check Telegram blog for more info.
It is possible to create links to Telegram, WhatsApp and Signal accounts using their associated phone numbers using these URLs:
https://t.me/+41794997040
https://wa.me/+41794997040
https://signal.me/#p/+41794997040
Related
I have this website where Bank users register using API and then Bank can use our SSO login API to log their users directly from Bank's mobile App or website. Now the Bank wants to log into our website via Banno's OAuth. Such that users log into Banno via Bank and then login directly into our website.
How can this be achieved? How will banno know which user to login? How to make it without having users to come into our website and fill user's login details? Can anyone help?
It sounds like your scenario is looking for Banno to be the 'Identity Provider' which is supported by our OAuth + OpenID Connection implementation in our Authentication Framework.
It'll be a good idea to take a look at the Consumer API OpenID Connect Example for inspiration.
When you run that example project, you can navigate in your web browser to https://localhost:8080/login.html. That'll show a page with a "Sign in with Banno" button. The page is meant to be a generic representation of what a non-Jack Henry web page would be.
Imagine that the button was formatted to say "Sign in with [Financial-Institution-name-goes-here]", it would be the same concept.
When you click the "Sign in with Banno" button, you'll be redirected to the Garden demo institution. This happens because the example project is configured to begin the authorization flow and use Garden.
If you're not signed in as your user in Garden, you'll be prompted to sign in.
It's worth noting that the username + password are never shared back to the example project...the user is logging into their (Banno-powered) financial institution.
After signing in (and accepting the permissions which have been requested), your web browser will be redirected to https://localhost:8080/me which finishes the authentication flow.
That page then displays the Identity Token for your convenience as a developer.
The content of the Identity Token is usable to cross-reference the user to your existing system and/or to prefill out registration forms.
Hope this helps!
Hi i want to develop the bot , but first i ask users to share the link of my bot to 5 other users then continue and register in my bot , i develop all sections but i cannot handle the first one, how can i detect that the use send share link to other user ?
i user laravel + talageram bot SDK to develop my bot.
i just want to know that user share the link and continue , i search in many docs and site bud i cannot find anythings that useful to me.
please help me to handle this problem in my telegram bot . thanks :)
Basically, you can't find out if your user has sent the link to others. You can only find out when the other user taps on the link and starts your bot. This can be done by Deep Linking. You should create a unique identifier for each user and add it as a query string to the special link made for the user.
Example:
https://telegram.me/my_bot?invitedFrom=user1
You have to check for invitedFrom parameter each time a user starts your bot in order to credit the referrer user.
By using above method, you will only be notified when the other user starts your bot.
However there is a trick you can do in order to see if a special message is forwarded to other users. Here are the steps:
Make a private channel.
Create a message containing your bot link.
Forward the message to your bot user.
Ask your bot user to forward the message to friends.
Check the view count of the message to know if it's seen by others.
By using this trick you can find out how many times the message containing your bot link is seen.
I need help to implement Viber number in my application. It should connect user directly with Viber chat option and it should add specific number where message need to be send. Is it possible to do this through HTML? What could be other way?
To open viber chat with a user:
Viber Chat
*IMPORTANT! the number should be with "%2B" instead of "+".
You can also open Viber contact, so a user will be able to choose call or chat.
EDIT: Looks like contact link stopped working on February 2019. Chat link still works
Viber Contact
You can add number:
Viber
or you can chat to:
Viber
or you can send message to channel:
some text
I have created a page with a facebook login option for users with facebook account on my website.
When they login I store their basic information like thier id, name, and email.
Now I want to send messages/ post on their wall using the IDs I have stored of the facebook users in the database.
Is their any FB tool available or how can I do this using FB javascript to acheive the same?
You can use Post from the GraphAPI to post to their timeline https://developers.facebook.com/docs/reference/api/post/
For obvious reasons of not turning Facebook into a source of spam, you cannot programatically send messages to users.
How can I get the user's photo and name to show on my website and save them in MySQL?
This can be simply achieved by querying Graph API with id of user
http://graph.facebook.com/USER_ID?fields=name,picture
Results will contain name of the user and URL to his picture
you need to get permission from user that uses your application.
once you have user_photos permision you can do whatever you want.
you can find all permission in here: extended permission: https://developers.facebook.com/docs/authentication/permissions/#extended_perms
and look out here:
https://developers.facebook.com/docs/reference/api/photo/
Juicy is right that you can get that information. Turgut is not right about the authorisation as you can actually get that information for anyone if you know their Facebook Id. And therein lies the issue. If you are in a facebook app then facebook will post the user's id with the request for each page within the request object. But outside of facebook iframe apps you will need a way to query the users id. this can be done using the Facebook javascript api.
Here is some further reading:
http://developers.facebook.com/docs/reference/api/
http://developers.facebook.com/tools/explorer/?method=GET&path=735915914
http://developers.facebook.com/docs/authentication/canvas/
visiting users Facebook ID w/out authorization?