Enter to sendĀ·Shift+Enter new line
lengthFunction: (text: string) => number | (text: string) => Promise<number>