If your chat is 0.3.7 compatible adding this wrapper should bring 1.1 compatibility as well:
let api = {"chat:push": chatAPI.push, "chat:clear": chatAPI.clear, "chat:activate": chatAPI.activate, "chat:show": chatAPI.show};
for(let fn in api)
{
mp.events.add(fn, api[fn]);
}