main
py 14 lines 458 Bytes
Raw
1 from helpers.api import ApiHandler, Request, Response
2
3 from helpers.state_snapshot import build_snapshot
4
5
6 class Poll(ApiHandler):
7
8 async def process(self, input: dict, request: Request) -> dict | Response:
9 return await build_snapshot(
10 context=input.get("context"),
11 log_from=input.get("log_from", 0),
12 notifications_from=input.get("notifications_from", 0),
13 timezone=input.get("timezone"),
14 )