async def patch_register(self, register: Dict, request: '<STR_LIT>'):
register['<STR_LIT>'] = {<EOL>o.slug: {<EOL>'<STR_LIT>': o.intent.key if o.intent else None,<EOL>'<STR_LIT:text>': await render(o.text, request),<EOL>} for o in self.options<EOL>if isinstance(o, QuickRepliesList.TextOption)<EOL>}<EOL>return register<EOL>
Store all options in the "choices" sub-register. We store both the
text and the potential intent, in order to match both regular
quick reply clicks but also the user typing stuff on his keyboard that
matches more or less the content of quick replies.