How to get phone number from device


(Tô Huy) #1

Hi,
Please help me,
I has connect not with telegram.
Do I get phone number from acc user’s telegram? not input from user.
Thanks.


(Sarah Palombo) #2

Hi :wave:

When a user talks to your bot, you won’t automatically get their phone number. the best way to handle this is to ask a user for their phone number where you can save this as an attribute.

You may be able to use Telegrams APi (https://core.telegram.org/bots/api#getuserprofilephotos) to get more information about the user but for there is get user profile i can’t see this option (im not sure that’s offered)

Sarah