diff --git a/neuroapi/post.py b/neuroapi/post.py index 0138d54..1ad0b1b 100644 --- a/neuroapi/post.py +++ b/neuroapi/post.py @@ -48,3 +48,10 @@ class Post(ApiMethod): if 'statusCode' in data: raise Exception(data['message']) return data + + async def edit_text(self, post_id: str, text: str): + response = requests.post(self.api_url+f"/post/edit/{post_id}", data={"text": text}) + data = response.json() + if 'statusCode' in data: + raise Exception(data['message']) + return data \ No newline at end of file