help! replace text limituptime hotspot

:local limitup [/ip hotspot user get [find name=“$namee”] limit-uptime];
:if ( $limitup = 08:00:00) do={ :put “8 HR” }
:if ( $limitup = 12:00:00) do={ :put “12 HR” }
:if ( $limitup = 1d 00:00:00) do={ :put “1 DAY” }

/tool fetch url=“https://api.telegram.org/botXXXX/sendMessage?chat_id=XXXXX&text=$limitup” mode=http keep-result=no;
my code doesnt work.