Mikrotik conversion. I'm trying to block all messengers. I have the latest version

I need help converting this to v7 scripting. I cant figure it out...

/ip firewall layer7-protocol
add name=whatsapp regexp="^.+(whatsapp|whatsapp.net).+$"
add name=telegram regexp="^.+(telegram|t.me).+$"
add name=facebook-messenger regexp="^.+(facebook|messenger.com).+$"
add name=signal regexp="^.+(signal|signal.org).+$"
add name=discord regexp="^.+(discord|discordapp.com).+$"

Create Firewall Filter Rules to Drop Messaging Service Traffic for Network 192.168.99.0/24

/ip firewall filter
add chain=forward src-address=192.168.99.0/24 action=drop layer7-protocol=whatsapp comment="Block WhatsApp for 192.168.99.0/24" log=yes
add chain=forward src-address=192.168.99.0/24 action=drop layer7-protocol=telegram comment="Block Telegram for 192.168.99.0/24" log=yes
add chain=forward src-address=192.168.99.0/24 action=drop layer7-protocol=facebook-messenger comment="Block Facebook Messenger for 192.168.99.0/24" log=yes
add chain=forward src-address=192.168.99.0/24 action=drop layer7-protocol=signal comment="Block Signal for 192.168.99.0/24" log=yes
add chain=forward src-address=192.168.99.0/24 action=drop layer7-protocol=discord comment="Block Discord for 192.168.99.0/24" log=yes

(Optional) Create a schedule to periodically update the layer7 protocols

/system scheduler
add name=update-messaging-protocols interval=1d on-event="/ip firewall layer7-protocol remove [find name~"whatsapp|telegram|facebook-messenger|signal|discord"] \r\n /ip firewall layer7-protocol add name=whatsapp regexp="^.+(whatsapp|whatsapp.net).+$" \r\n /ip firewall layer7-protocol add name=telegram regexp="^.+(telegram|t.me).+$" \r\n /ip firewall layer7-protocol add name=facebook-messenger regexp="^.+(facebook|messenger.com).+$" \r\n /ip firewall layer7-protocol add name=signal regexp="^.+(signal|signal.org).+$" \r\n /ip firewall layer7-protocol add name=discord regexp="^.+(discord|discordapp.com).+$""

I would love to block all messengers if possible. please help! desperate!

You cannot with MT device, you need a router capable of deep packet inspection and those are more expensive and the feature is only possilbe with an expensive subscription add-on.