async def _send_typing(self, request: Request, stack: Stack):
active = stack.get_layer(lyr.Typing).active<EOL>msg = ujson.dumps({<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:id>': request.conversation.fbid,<EOL>},<EOL>'<STR_LIT>': '<STR_LIT>' if active else '<STR_LIT>',<EOL>})<EOL>headers = {<EOL>'<STR_LIT>': '<STR_LIT:application/json>',<EOL>}<EOL>params = {<EOL>'<STR_LIT>': self._access_token(request),<EOL>}<EOL>post = self.session.post(<EOL>MESSAGES_ENDPOINT,<EOL>params=params,<EOL>data=msg,<EOL>headers=headers,<EOL>)<EOL>logger.debug('<STR_LIT>', msg)<EOL>async with post as r:<EOL><INDENT>await self._handle_fb_response(r)<EOL><DEDENT>
Send to Facebook typing indications