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?
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?
2
Answers
For privacy reasons, it’s absolutely impossible.
These are everything that bot knows about a user:
https://core.telegram.org/bots/api#user
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