I am using telegram to broadcast alerts from server events/incidents/alarms etc in our support group, now $message on the notification is truncated I have done the process on your article in extending message lengths. But does not work, it seems that after a space it will not post the whole alarm eg:
$message%20
output
Message: Discards rate for Interface XXXXXXX is now back to normal, current value is 0%.<-- truncated after space