SMS forward

hello, with double authentication I am having trouble, so I would like to transfer the received SMS to the mikrotik chateau 4g box.
I managed to send an SMS upon receipt but I cannot transfer the content of the email. I use the $Message variable but without success. I helped myself with that.

https://git-eworm-de.translate.goog/cgit.cgi/routeros-scripts/about/doc/sms-forward.md?_x_tr_sl=en&_x_tr_tl=fr&_x_tr_hl=fr&_x_tr_pto=wapp

attached my global file :

:global SmsForwardHooks {
{ match=“ok”;
allowed-number=“+33750XXXX”;
command=“/tool/sms/send lte1 phone-number=0XXXXXX message="$Message";” };
};

Thanks you very much

Good morning
Does anyone have an answer for me please?
THANKS

I dunno @eworm’s internals, but $Message is going to be resolve when the global is declared, so it may not be valid for substitution. Or if allowed, the $Message have to be escaped, like $Message so it can be [:parse …] later.

All the rest of @eworm’s init logic have to be inplace too.