admin_1
October 14, 2025, 11:28am
1
Hello everyone,
I’m currently working on a system that integrates a Teamup calendar with Telegram , and I need some assistance.
Current Functionality:
The system retrieves events from selected sub-calendars (Team up - Get a sub-calendar module) .
It sends the events as individual messages
It only does this for today’s date
Desired Change:
Send all the events for the week or month at the beginning of the week or month, automatically without setting manually the date for every month.
Questions:
How can I adjust the API call or the module to fetch all events for the current week/month without manual input for the date?
Any guidance or examples would be greatly appreciated!
Thank you for your help!
Links: https://apidocs.teamup.com/docs/api/0f9f896800ffe-get-events
Hey there,
according to the link provided there are a startDate and endDate variables you can use to specify the time slot.
So you can do addDays({{now}};-7) as the start date and {{now}} as the end date to get the last 7 days. Or addMonths({{now}};-1) for last month.
Hello @Stoyan_Vatov ,
Thank you for your response.
I did something like this. It allows you to query calendar events between the current date and 7 days later while filtering results by multiple selected subcalendars .
Afterwards a scheduling event was added so that the API query is runs only once per week , at a specific time and day.
[teamup_calendar_ID]/events?subcalendarId[]=[Insert Number]&subcalendarId[]=[Insert Number]&subcalendarId[]=[Insert Number]&startDate={{formatDate(now; “YYYY-MM-DD”)}}&endDate={{formatDate(addDays(now; 7); “YYYY-MM-DD”)}}
Thank you for your help!