如何通过Telegram Bot API从电报用户获取联系电话?
电报机器人启动机器人后是否有可能获取用户的电话号码(无明确要求用户输入其联系方式)?
如果是这样,如何使用Telegram Bot API或任何其他方法来实现此目标?
Is it possible for telegram bots to obtain the user's phone number after they have started the bot (without explicitly asking the user to input their contact details)?
If so, how do I achieve this using Telegram bot api or any other method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
出于隐私原因,这绝对是不可能的。
这些都是机器人对用户的了解:
For privacy reasons, it's absolutely impossible.
These are everything that bot knows about a user:
https://core.telegram.org/bots/api#user
我发现您的询问是随机的,
您必须发送用户键盘button ,但是按钮必须具有选项“ request_contact” = true 。
docs screenShot
https://core.telegram.org/bots/api#keyboardbobledbutton
I found your asking randomly
You must send user KeyboardButton, but Button must have option "request_contact" = true.
Screenshot from docs
https://core.telegram.org/bots/api#keyboardbutton