<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(cls, request: web.Request) -> AuthWidgetData: """ Parse request as Telegram auth widget data. :param request: :return: :obj:`AuthWidgetData` :raise: :obj:`aiohttp.web.HTTPBadRequest` """

        try:
            query = dict(request.query)
            query['id'] = int(query['id'])
            query['auth_date'] = int(query['auth_date'])
            widget = AuthWidgetData(**query)
        except (ValueError, KeyError):
            raise web.HTTPBadRequest(text='Invalid auth data')
        else:
            return widget