https://discord.gg/botpress logo
User info from Telegram
# 🤝help
h
I need help with a bot that will collect information about contest participants from Telegram. The idea is that people who want to participate in the giveaway will enter the bot using a QR code, click the "I want to participate" button, and then I want the bot to get all available information about the person and enter it into a spreadsheet. I can only get the user's Telegram ID. Can I get their username, name, and phone number? So I can contact them after the giveaway.
l
Hey @high-camera-61235 🙂 For Username and Name > These are not automatically available to the bot. Telegram only shares the user ID unless the user interacts in a way that exposes more info
For Phone Number > To collect a user's phone number, you must explicitly ask for it using a "Request Contact" button in your bot. Where the user must tap this button and consent to share their phone number.