feat: notes/search-by-tag をサポート

pull/125/head
yupix 8 months ago
parent 9c00909af3
commit 27d3a7fd80
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -1162,6 +1162,35 @@ class NoteActions(ClientNoteActions):
):
yield i
async def search_by_tag(
self,
tag: str,
reply: bool | None = None,
renote: bool | None = None,
with_files: bool | None = None,
poll: bool | None = None,
since_id: str | None = None,
until_id: str | None = None,
limit: int = 10,
query: list[str] | None = None,
):
data = {
"tag": tag,
"reply": reply,
"renote": renote,
"withFiles": with_files,
"poll": poll,
"sinceId": since_id,
"untilId": until_id,
"limit": limit,
"query": query,
}
raw_notes: list[INote] = await self._session.request(
Route("POST", "/api/notes/search-by-tag"), json=data, auth=True
)
return [Note(raw_note, client=self._client) for raw_note in raw_notes]
@deprecated
async def send(
self,

Loading…
Cancel
Save