main
py 9 lines 309 Bytes
Raw
1 from helpers.api import ApiHandler, Input, Output, Request
2 from plugins._pin_to_top.helpers.pins import get_pins
3
4
5 class GetPins(ApiHandler):
6 """Return persisted chat and task pins."""
7
8 async def process(self, input: Input, request: Request) -> Output:
9 return {"ok": True, "pins": get_pins()}