|
|
|
@ -53,26 +53,3 @@ class NoteManager(AbstractManager):
|
|
|
|
|
@property
|
|
|
|
|
def action(self) -> NoteActions:
|
|
|
|
|
return NoteActions(note_id=self.__note_id, session=self.__session, client=self.__client,)
|
|
|
|
|
|
|
|
|
|
async def get(
|
|
|
|
|
self,
|
|
|
|
|
local: bool = True,
|
|
|
|
|
reply: bool = False,
|
|
|
|
|
renote: bool = True,
|
|
|
|
|
with_files: bool = False,
|
|
|
|
|
poll: bool = True,
|
|
|
|
|
limit: int = 10,
|
|
|
|
|
since_id: str | None = None,
|
|
|
|
|
until_id: str | None = None,
|
|
|
|
|
):
|
|
|
|
|
data = {
|
|
|
|
|
'local': local,
|
|
|
|
|
'reply': reply,
|
|
|
|
|
'renote': renote,
|
|
|
|
|
'withFiles': with_files,
|
|
|
|
|
'poll': poll,
|
|
|
|
|
'limit': limit,
|
|
|
|
|
'sinceId': since_id,
|
|
|
|
|
'untilId': until_id,
|
|
|
|
|
}
|
|
|
|
|
await self.__session.request(Route('POST', '/api/notes'), json=data, auth=True, lower=True)
|
|
|
|
|