Telegram bot that triggers when receiving the message “SORTEO”, records the user’s response in Google Sheets, and replies to the user

Let your Telegram bot capture contest entries, save responses to Google Sheets, and send instant thank-yous—no headaches, no manual work.

  • Instantly when the trigger is activated
  • Instantly when receiving a text message (telegrambot → webhook)
  • Check if meets specific conditions (btzfilters → process)
  • Ask user (telegrambot → ask)
  • Add a new row at the end of a sheet (gspreadsheet → add_row_to_end)
  • Reply to the user (telegrambot → reply)

Managing contest entries in a fast-growing Telegram community can quickly become a nightmare—manually tracking every participant, gathering extra details, and keeping records accurate eats up hours you don’t have. Mistakes, lost entries, or slow responses can hurt credibility, reduce engagement, and lead to missed opportunities, not to mention the risk of overlooking enthusiastic participants who expect quick acknowledgment and a smooth process.

Botize’s automation listens for every time a user messages 'SORTEO' to your Telegram bot. Instantly, it asks a custom follow-up (like 'Who did you recommend the channel to?'), captures the response, and neatly logs all user details and answers into the Google Sheet you specify—including date, time, and user info—before immediately sending a thank-you confirmation back to the participant. The process is seamless, accurate, and happens without manual effort, freeing you to focus on growing your audience and launching more engaging events.

Ready to transform the way you run giveaways? Follow Botize’s step-by-step guide or use this formula right away to automate every step—from filtering by keywords to customizing responses and choosing how and when entries are logged. No more spreadsheets chaos or missed messages: set it up and let your Telegram community thrive, hassle-free!

Automate this task with 6 simple prompts

Copy and paste the following prompts into Botize's AI task editor

  1. 2

    Select the AI editing tool.

    AI Prompt Tool
  2. 3

    Set up the initial automation trigger so it checks for new activity every hour.

    Copy and paste this prompt into the AI editing tool.

    Create a step that runs the automation automatically every hour to check for new messages.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  3. 4

    Capture incoming messages sent to the Telegram bot in any public channel.

    Copy and paste this prompt into the AI editing tool.

    Add a step so the bot listens for all new text messages it receives in any public Telegram channel.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  4. 5

    Filter messages so the automation only continues when the message content is 'SORTEO'.

    Copy and paste this prompt into the AI editing tool.

    Include a filter so that this automation only triggers if the received message says exactly 'SORTEO'.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  5. 6

    Ask the user a follow-up question to collect more information once 'SORTEO' is received.

    Copy and paste this prompt into the AI editing tool.

    After someone sends 'SORTEO', reply to ask: '¿A quién has recomendado al canal? Indica su @. Si no lo tiene, debe crearse uno antes de registrarlo en el bot.' and wait for their response.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  6. 7

    Store the details in a Google Sheets spreadsheet, including the date and time, user ID, user name, and the user's response.

    Copy and paste this prompt into the AI editing tool.

    Add a step to save the current date and time, the user's Telegram ID, their user name, and their answer to your question as a new row in the configured Google Sheets document.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  7. 8

    Send a confirmation message back to the user thanking them for participating.

    Copy and paste this prompt into the AI editing tool.

    Reply to the user with a thank you message saying: '¡Gracias por tu participación!'

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  8. 9

    Your automation is ready to use. Click the 'Save changes' button.

    Save changes

Run Your Telegram Giveaways on Autopilot

Here’s how it works: When someone sends “SORTEO” to your Telegram bot, your workflow springs into action. It asks them who they recommended, waits for their answer, and securely saves everything—date, time, username, and more—in Google Sheets. Finally, your participant gets a friendly confirmation. The whole process is visible, instant, and hands-off for you.

Manual Botize
Manually check for messages with 'SORTEO' keyword 2 minutes per entry 0 Minutes
Write response details into your spreadsheet 3 minutes per entry 0 Minutes
Send confirmation message to each participant 1 minute per entry 0 Minutes
Total 6 minutes per entry (plus frustration!) 0 Minutes

Looking for a no-nonsense way to run, track, and manage your Telegram giveaways? This is the exact solution you needed (and probably wish you found sooner).


Community Referral Contest

Run a week-long giveaway where users enter by recommending friends to your channel—the automation collects every participant and their referral, so picking your winner is simple and transparent.

Zero Manual Work

No more messy spreadsheets or forgotten entries. Your bot handles everything, so you can focus on making your giveaway awesome.

Instant Gratification

Participants get immediate confirmation, which keeps everyone happy and boosts your channel’s credibility.

Effortless Tracking

With every detail logged, picking winners (and keeping things fair) is easier than ever.


Feedback for Prizes

Host a Telegram campaign where users share valuable feedback in exchange for a prize entry. Every response is tracked instantly without you or your moderators lifting a finger.

🎉

⌾︎ You manage Telegram channels and want to run fair, efficient giveaways.

⌾︎ You’re tired of sifting through chat histories or scrambling for entry data.

🧑‍💻

✕ You never use Telegram bots or don’t host community giveaways.

✕ You prefer sorting through hundreds of private messages manually.


✓ Customize the follow-up question, so you can tailor it to your campaign—ask for emails, suggestions, or anything else.

✓ Decide the columns and data stored in Google Sheets, such as Telegram username, recommendations, time, and more.

✓ Set a personalized thank-you message to match your channel’s voice or surprise participants with bonus info.




This automation listens for incoming messages in your Telegram bot. When a user sends the message “SORTEO”, the automation is triggered. First, it asks the user a follow-up question requesting additional information (e.g., who they recommended to the channel). The user’s response is then captured. Next, the automation stores the collected data in a Google Sheets document, including the date and time, user ID, user name, and the user’s response. Finally, the bot replies to the user with a confirmation message thanking them for their participation. You need to configure your Telegram bot, set the Google Sheets destination, and ensure the sheet structure matches the expected columns.

Related automations