Uspacy Knowledge Base
All materialsUse cases (scenarios)Automation

Sending Telegram notifications about events in your Space

Sending Telegram notifications about events in your Space

In this article, we'll explain how to set up automatic Telegram notifications for important events in your Uspacy Space

Do you want to automatically receive Telegram notifications about events in your Uspacy Space? Assigning tasks, creating CRM elements, new activities β€”all of this can be monitored in real-time. To do this, just correctly configure automation that will react to these events in the Space and inform you via Telegram.

Let's look at this scenario using the example of sending a notification about the creation of a new task.

Let's go step-by-step ⬇️

Preparatory actions

Before setting up the conditional action in your Space, it's crucial to properly prepare the request.

For this, we need:

Telegram Bot, its Token, and chat ID

If you don't have your own bot, create one.

πŸ” You can read how to do this HERE.

If you already have a bot, get its token.

AD_4nXfInhGqrb75R_4Vth9KrVdV-pbeK7ixl_I2o2aFOp5H34MqNdxJtrqb1zFVH5aysDsorNFHDyA6EWRfHyq5UDymjYkCBS2W5Lgd3ICYGW48ku0b-GJH0g2skrWzBdmhKVEuTaTcNw

πŸ” You can read how to do this HERE.

Also, get the ID (chat_id) of your chat with the bot. You can do this with the following request in your browser's address bar:

https://api.telegram.org/bot<N>/getUpdates

Where:

🟣 https://api.telegram.org – This is the official address of the Telegram Bot API, through which interaction with bots in Telegram occurs.

🟣 <N> – Your Telegram bot's token.

🟣 getUpdates – A method that returns the latest actions of users who have interacted with the bot: sent messages, clicked buttons, etc.

❗️ If your request doesn't show any results (i.e., result: [] or nothing at all), the reason might be that no one has messaged the bot yet. And a bot cannot initiate a conversation with a user first. Therefore, you need to first send a message to the bot, and then repeat the getUpdates request to get the chat_id.

AD_4nXfeaS1AZPm-TmUyaR6IJInVGf4P1gsI9Ur9HX5Tebt8LwlvYW4QSRhiNHGDDo_5E8JTw--QKP0PeUtpwm3RbCkukWbSWpfRPhbUwsug3Q63nNcH2TkvbzDOKhcZmM4mVV0h4ict

Formatted notification request and message appearance setup

https://api.telegram.org/bot<N>/sendMessage?chat_id=<ID>&parse_mode=html&text=

<Your text>%0A ​

<Your text>%0A ​

<Your text>

Where:

🟣 https://api.telegram.org – This is the official address of the Telegram Bot API, through which interaction with bots in Telegram occurs.

🟣 <N> – Your Telegram bot's token.

🟣 sendMessage – A method used to send a message from the bot to a chat.

🟣 <ID> – Your chat ID with the bot. We described how to get it above ⬆️

🟣 parse_mode=html – A method that allows you to format text using HTML tags. You can read more about this in Telegram's own knowledge base.

🟣 <Your text> – The text for your message (you can also use emojis).

🟣 %0A – This is the URL-encoded character for a line break (equivalent to the Enter key). Accordingly, when you form a message in the URL for the sendMessage request, you should insert %0A instead of a regular line break.

Here's an example of the notification request and the appearance of the message about a new task assignment:

https://api.telegram.org/bot7721185936:AAHvBavAiipRknvjwaa597YMMn5eR_NRyeg/sendMessage?chat_id=655565165&parse_mode=html&text=

βœ… <b>New task created

⬇️</b> %0A

πŸ“ Title: %0A

πŸ‘€ Person responsible: %0A

πŸ“† Creation date: %0A

πŸ”— <a

href="https://translate-me.uspacy.ua/tasks/">Link</a>

Setting up the Conditional Action

First, select a trigger. In our example, this is the creation of a new task.

AD_4nXeMRXcmk7heMMk2RM9HhvyHSxDdJ517MAsER7zOSxZlfcoLkHy52VgheI_tyadXfPEczy3D3NoLckZFCr5UDk60ZT52YT4Q2Zul8PW3D3YUiGHJZug2AFN7-aTODpzmlf1X5dvIpg

Next, specify the action Execute a Webhook.

AD_4nXeRbHAy0XVt25zopeFZyq-JKaBoYHTht3m26XLKdVXhcyiRuLIHRnPj0dKn7-3_MWKm_y_bde3emM0t0dDwxUbP4FnvJ-3L0Eh53zAZZk61SMo4A8vJTYdxc9eDe3d5aO4TVevh

In the Endpoint URL field, paste the request we prepared earlier.

AD_4nXcg8L98uQR9E6Fv3Whq5YyQsPZP5xkJdSVrHSOkVgikqo2mTxmKuitUyWm74i3_ntJF78AYezZkLniy7eu2thQjUV5w20KbMZUSUjOAP-Dk_M_7Dk1i8NIyNEgMFgVFn_unF8kP1A

πŸ’‘ It's best to place it on a single line, without unnecessary visual spaces. Their role in the final text is already played by the %0A URL code.

AD_4nXcUX-eyUyoJm_m6p8uYOmWM_AkEmi2JfmuR92Ek3os2shdQ-HwY-qvriMRaKU8vU4YnZK0V79M1H0vLwBBnGtQQFkycF7hxVBSQFUhkuqUTw0wL2mjUW1KEy_x1Q1EFkzBH0_5KKQ

Then, specify the data indicators so that the conditional action affects the correct element (the one that triggered it) and passes the necessary information about it.

AD_4nXffEGPfXyUa2cIgX8S5-uUPiy0dY8sHpoyPPI2WzG4YZFmxEbBVcbgY_ZeEYAleQaGScocmSAbESd3But9ujiUb5pB7j-bti6y4yhwtsj9A9w-EZ45GMKRD1CbedZGVGHDPTs9w-wAD_4nXdo7pA8hw0bJHuOg6BSOcyxqx2Xim9BM8XJvB3h5rffVGlj6ETXADt1f-ulx1bTOq_p8WomTMYSXWuSuJwIdNcSDQIfzJ_rlDghHgsmmnNxb1ldWeommlCxYsyemrqAik31c4_rLQ

Finally, just Create the configured conditional action. Also, make sure the activity toggle is turned onβ€”only then will it become active.

AD_4nXdgNdq3vzq0-16SNicTON8Xj26hJwZTGumUsQTSE84ex1pyFO-U6EaeHUIG214eO6MzA5P47RQYRJekg06Uw1ryQgQcV3X5-CXCmVFnnt43DKU6XNFo2am6ZI2XcpQcLs7cYEUT

Result

Create a new task in your Space.

AD_4nXdQXPgcstVF8KpShYZj8gBxCLpdrP4fmyjDIa7Z7FlzOB-9scghOgs9oJxuM1evrDjBBLdiO0c7MCI4wW9_BxnuB8YwXTqeouUKxqhzrYurixLQNnCGlAntM55Zzh1RWC_kl6JztQ

You'll receive a notification and a new message in your chat with the bot in Telegram. Open it and you'll see that it contains the information we configured earlier.

AD_4nXcWKzu4EF2FDt5noKanJJRba8hcMdjBrwrKseQ1kDkUt8HKrwEKowWBuq_OZPa4cN6eiHp7HZ6h2aDl3z1T1FssslcZI4muxFgN_Q8baUmlU_xROhSnxnxAjSkbSCPbNzIRt0V9ag

If you have additional questions or you need to contact the support, send a request to this email [email protected]

​ ​

Created: June 13, 2025 / Updated: December 2, 2025