InlineMedia

class praw.models.InlineMedia(*, caption: str = None, path: str)

Provides a way to embed media in self posts.

__init__(*, caption: str = None, path: str)

Initialize an InlineMedia instance.

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

  • path – The path to a media file.