Skip to content

Commit bf1adbd

Browse files
committed
Update dependencies in poetry.lock
Upgraded several package versions including "astroid", "bandit", "certifi", and "coverage". Added new dependencies "attrs", "boltons", "bracex", and "click-option-group". These changes aim to improve compatibility and introduce additional features offered by the latest versions.
1 parent 9ec96e6 commit bf1adbd

File tree

3 files changed

+908
-344
lines changed

3 files changed

+908
-344
lines changed

lemmylib/lib.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,13 @@ def create_private_message(self, recipient_id: int, content: str):
345345
return self.call_api(LemmyApiMethod.POST, f'private_message',
346346
data={'recipient_id': recipient_id, 'content': content})
347347

348+
def create_comment(self, post_id: int, content: str, parent_id: int | None = None, language_id: int | None = None):
349+
self._logger.debug("LemmyLib create_comment")
350+
351+
return self.call_api(LemmyApiMethod.POST, f'comment',
352+
data={'post_id': post_id, 'content': content, 'parent_id': parent_id,
353+
'language_id': language_id})
354+
348355

349356
if __name__ == '__main__':
350357
print("This is a library, not a script.")

0 commit comments

Comments
 (0)