You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[PAGER ADDRESS CHAT-ID INSTEAD OF TELEGRAM GROUP-ID](#pager-address-chat-id-instead-of-telegram-group-id)
19
+
-[Custom user attribute](#custom-user-attribute)
19
20
-[TROUBLESHOOTING](#troubleshooting)
20
21
-[CONTRIBUTIONS](#contributions)
21
22
-[LICENSE](#license)
@@ -151,6 +152,20 @@ else
151
152
fi
152
153
```
153
154
155
+
### Custom user attribute
156
+
You can add a custom user attribute and use it in your script.
157
+
Go TO `Setup>UsersCustom>user attributes` and create a custom attribute named `TELEGRAMCHAT`, do not change the name, you can change the Title and Help Text.
158
+
<imgsrc="images/create_custom_user_attribute.PNG"alt="Custom User attribute creation"width="100%"/>
159
+
160
+
#### Optional custom macro
161
+
Go To `Setup>Events>Notification configuration>` and edit your notifcation. Add a custom macro.
162
+
Regex : ```\d{5,}```
163
+
The Macro checks for an at least 5 digit long number, if your Chatid differs, you can adjust that, this also ensures that only those with a chatid set up will get notified. (could work also as a whitelist)
164
+
<imgsrc="images/notification_custom_macro.PNG"alt="Custom macro for notification"width="100%"/>
165
+
Edit your user and enter your Group/Chat-ID
166
+
<imgsrc="images/user_add_chat_id.PNG"alt="Custom macro for notification"width="100%"/>
167
+
168
+
154
169
## TROUBLESHOOTING
155
170
For more details and troubleshooting with parameters please check:
0 commit comments