本文介绍了如何创建通过电报联系特定电话号码的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我发现我可以在HTML中使用这样的链接:

So I found out I could use a link like this in HTML:

<a href="https://api.whatsapp.com/send?phone={{phone_number}}" target="_blank">WhatsApp</a>

为了让用户与 {{phone_number}} 直接从网页(通过WhatsApp网站)。

in order to let a user contact {{phone_number}} directly from a webpage (via WhatsApp web).

我的问题是:如何通过电报而不是WhatsApp来做同样的事情?

My question is: how to do the same but instead of WhatsApp, via Telegram?

预先感谢

推荐答案

无法像这样链接到Telegram到目前为止的电话号码,因为每个用户必须先将电话号码添加到他们的联系人列表中,然后才能通过电话号码向他们发送消息。此限制是由于Telegram隐私政策和滥用预防。更详细地讲,如果Telegram允许这种类型的链接,则恶意方可以为每个可能的号码获取一个 https://t.me/+1XXXXXXX 之类的网页,而不会通过身份验证。这很可能是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. 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.

但是,您可以链接到 @username 电报用户(如果有):

However, you can link to @username of a Telegram user if he/she has any:

这篇关于如何创建通过电报联系特定电话号码的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 05:52