From 738c40feeba16e89cd894fd1801abbe1c4914e63 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 19 Aug 2025 11:25:16 +0300 Subject: [PATCH] Update statuses.py --- mastodon/statuses.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mastodon/statuses.py b/mastodon/statuses.py index f40d3d4..c7e0242 100644 --- a/mastodon/statuses.py +++ b/mastodon/statuses.py @@ -259,6 +259,10 @@ class Mastodon(Internals): 2.8.2, you can only have either media or a poll attached, not both at the same time. + You can use :ref:`get_status_length() ` to count how many + characters a status you want to post would take up in terms of Mastodons character + limit. The limits can be retrieved from the instance information (`instance_v2()`). + **Specific to "pleroma" feature set:**: Specify `content_type` to set the content type of your post on Pleroma. It accepts 'text/plain' (default), 'text/markdown', 'text/html' and 'text/bbcode'. This parameter is not @@ -593,4 +597,5 @@ class Mastodon(Internals): """ id = self.__unpack_id(id) params = self.__generate_params(locals(), ['id']) - return self.__api_request('POST', f'/api/v1/statuses/{id}/translate', params) \ No newline at end of file + + return self.__api_request('POST', f'/api/v1/statuses/{id}/translate', params)