InlineMedia

class asyncpraw.models.InlineMedia(path: str, caption: Optional[str] = None)

Provides a way to embed media in self posts.

__init__(path: str, caption: Optional[str] = None)

Initialize an InlineMedia instance.

Parameters
  • path – The path to a media file.

  • caption – An optional caption to add to the image (default: None).