async def _send_text(self, request: Request, stack: Stack):
parts = []<EOL>for layer in stack.layers:<EOL><INDENT>if isinstance(layer, lyr.MultiText):<EOL><INDENT>lines = await render(layer.text, request, multi_line=True)<EOL>for line in lines:<EOL><INDENT>for part in wrap(line, <NUM_LIT>):<EOL><INDENT>parts.append(part)<EOL><DEDENT><DEDENT><DEDENT>elif isinstance(layer, (lyr.Text, lyr.RawText)):<EOL><INDENT>text = await render(layer.text, request)<EOL>for part in wrap(text, <NUM_LIT>):<EOL><INDENT>parts.append(part)<EOL><DEDENT><DEDENT><DEDENT>for part in parts[:-<NUM_LIT:1>]:<EOL><INDENT>await self._send(request, {<EOL>'<STR_LIT:text>': part,<EOL>}, stack)<EOL><DEDENT>part = parts[-<NUM_LIT:1>]<EOL>msg = {<EOL>'<STR_LIT:text>': part,<EOL>}<EOL>await self._add_qr(stack, msg, request)<EOL>await self._send(request, msg, stack)<EOL>
Send text layers to the user. Each layer will go in its own bubble.

Also, Facebook limits messages to 320 chars, so if any message is
longer than that it will be split into as many messages as needed to
be accepted by Facebook.