[英]How to create a link to contact specific phone number via Telegram?
So I found out I could use a link like this in HTML:所以我发现我可以在 HTML 中使用这样的链接:
<a href="https://api.whatsapp.com/send?phone={{phone_number}}" target="_blank">WhatsApp</a>
in order to let a user contact {{phone_number}}
directly from a webpage (via WhatsApp web).为了让用户直接从网页(通过 WhatsApp 网络)联系
{{phone_number}}
。
My question is: how to do the same but instead of WhatsApp, via Telegram?我的问题是:如何通过 Telegram 而不是 WhatsApp 做同样的事情?
Thank you in advance先感谢您
Welcome to StackOverflow.欢迎使用 StackOverflow。
You should create a link like https://telegram.me/YourUsername for that purpose.为此,您应该创建一个类似https://telegram.me/YourUsername的链接。
Check Telegram blog for more info.查看Telegram 博客了解更多信息。
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.到目前为止,不可能像这样将电话号码链接到 Telegram,因为每个用户都必须先将电话号码添加到他们的联系人列表中,然后才能通过电话号码向他们发送消息。 This limitation is because of Telegram privacy policy and abuse prevention.
此限制是由于 Telegram 隐私政策和滥用预防。 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.更详细地说,如果 Telegram 允许这种类型的链接,恶意方可以在不通过身份验证的情况下为每个可能的号码获取类似
https://t.me/+1XXXXXXX
的网页。 That's most probably why Telegram doesn't have such linking feature.这很可能是 Telegram 没有这种链接功能的原因。
However, you can link to @username
of a Telegram user if he/she has any:但是,您可以链接到 Telegram 用户的
@username
,如果他/她有的话:
It is now possible to create links to both Telegram and WhatsApp accounts using their associated phone numbers using these URLs:现在可以使用以下 URL 使用关联的电话号码创建指向Telegram和WhatsApp帐户的链接:
https://t.me/+41794997040 https://t.me/+41794997040
https://wa.me/+41794997040 https://wa.me/+41794997040
You can use this site callmeback.in .您可以使用此站点callmeback.in 。 It generates direct links to WhatsApp or/and Telegram users, bots or channels.
它生成指向 WhatsApp 或/和 Telegram 用户、机器人或频道的直接链接。 You can copy the link to the clipboard instantly and paste it into your document.
您可以立即将链接复制到剪贴板并将其粘贴到您的文档中。 Especially useful if the document supports rich formatting.
如果文档支持丰富的格式,则特别有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.