I'd start looking at
C_ChatInfo.SendAddonMessage() and
CHAT_MSG_ADDON.
You'll also have to register your
prefix with
C_ChatInfo.RegisterAddonMessagePrefix() to start receiving your messages.
PS: Your
prefix is a string that's used to identify messages from your addon. It's suggested to base it off your addon's name.