async def _send_button_template(self, request: Request, stack: Stack):
gt = stack.get_layer(ButtonTemplate)<EOL>payload = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:text>': await render(gt.text, request),<EOL>'<STR_LIT>': [await b.serialize(request) for b in gt.buttons],<EOL>}<EOL>msg = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:type>': '<STR_LIT>',<EOL>'<STR_LIT>': payload<EOL>}<EOL>}<EOL>await self._add_qr(stack, msg, request)<EOL>await self._send(request, msg, stack)<EOL>
Generates and send a button template.