get_community_media_files by status:
Get community media files by status.
Parameters:
community_id
(str
): The ID of the community.status
(int
|List[int]
): status to look for.channel_id
(str
, optional): Channel idgroup_id
(str
, optional): group iduser_id
(str
, optional): user id
Returns:
- List[Message]: A list of Message objects representing media files.
Raises:
switch.error.SwitchError
: If the messages could not be retrieved.
Example:
# look for images
media_files = await client.get_community_media_files_by_status(community_id="communityID", status=1)
print(media_files)
# or to get the status, use enum
from swibots.types import MediaType
# status=MediaType.DOCUMENT.value