feat: fetch_childrenメソッドを追加

feat/v13/notes
yupix 10 months ago
parent bd75c18659
commit 2e6629da8e
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -151,6 +151,18 @@ class ClientNoteActions(AbstractAction):
) )
return [Note(note, self._client) for note in notes] return [Note(note, self._client) for note in notes]
@cache(group="get_note_children", override=True)
async def fetch_children(
self,
limit: int = 100,
since_id: str | None = None,
untilId: str | None = None,
note_id: str | None = None,
) -> list[Note]:
return await self.get_children(
limit=limit, since_id=since_id, untilId=untilId, note_id=note_id
)
async def get_all_children( async def get_all_children(
self, self,
since_id: str | None = None, since_id: str | None = None,

Loading…
Cancel
Save