Client scheduling via Google Calendar integrated with Telegram

:bullseye: What is your goal?

How to build a Telegram booking bot in Make.com: Calendar owner creates and deletes available slots, client selects strictly from those created events, and the slot closes for others?

:thinking: What is the problem & what have you tried?

I tried passing the slot data directly via Telegram inline buttons (callback_data). The booking itself gets updated/created in my Google Calendar, but the event time on the selected date turns out completely arbitrary—it does not match the actual slot time selected by the user via the button.

Hey there,

can you show some screenshots from the scenario history showing what the different input and output bundles look like? Or you can paste some of the JSON files here directly.

When you get the wrong time, that usually means the Calendar module’s start/end isn’t coming from the slot you clicked. Either it is mapped from the wrong bundle, or the date string has no timezone, so it will get interpreted differently.

A more robust pattern is to put only the Google Calendar event ID in the callback_data, as this should keep you under Telegram’s 64 byte limit. So this way when the button is clicked:

  1. Get an Event using that ID, so start/end come straight from the calendar.
  2. Check if that ID is still marked available (e.g. title “Available”).
  3. Update that same event (rename to “Booked - [name]”, add the client), rather than creating a new one. That closes the slot for everyone else.

For the slot list, use Search Events filtered on the “Available” title. Owner side deletes then takes effect automatically.

sounds like an easy fix but definitely need to see the bundles first like stoyan said. post the json here or ping me if u want a quick hand with it!

Put the calendar event ID in callback_data instead of the time, since the ID fits inside Telegram’s 64 byte limit. On the callback, use Get an Event with that ID, then Update that same event to mark it booked. That way the time always comes from the calendar and not from the button.

checking existing calendar busy periods before presenting inline keyboard time slots prevents embarrassing double bookings when multiple users chat with the bot simultaneously.

storing pending reservation states in a simple key value store with a five minute expiration window keeps abandoned booking sessions from locking up open calendar slots.

One extra safeguard: treat every Telegram button click as potentially stale, not as the booking itself. Keep the calendar event ID in callback_data, fetch that event again, and confirm it is still available immediately before updating it. Map the event’s original start and end values directly, with the calendar’s timezone set explicitly, rather than rebuilding a time from the button label. Send a booking confirmation only after the update succeeds. If the event is no longer available or the update fails, tell the person the slot was taken and show the current slots again. This avoids stale-button confirmations and timezone drift.