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?
For privacy reasons, it's absolutely impossible.
These are everything that bot knows about a user:
Field | Type |
---|---|
id | Integer |
is_bot | Boolean |
first_name | String |
last_name | String |
username | String |
language_code | String |
can_join_groups | Boolean |
can_read_all_group_messages | Boolean |
supports_inline_queries | Boolean |