How to send custom OSD message from flight computer over Mavlink

Hi, I used the following python code example but the message appears only in Mission Planer but not on OSD.

from pymavlink import mavutil
# Connect to the MAVLink stream
master = mavutil.mavlink_connection('/dev/serial0', baud=115200, source_system=1)
master.wait_heartbeat()
print("Heartbeat from system (system %u component %u)" % (master.target_system, master.target_component))

master.mav.statustext_send(2, b"Cusom message")

OSD1_MESSAGE_EN = 1