Yield new inbox items as they become available. Items are yielded oldest first. Up to 100 historical items will initially be returned. Keyword arguments are passed to :func:`.stream_generator`. For example, to retrieve all new inbox items, try: .. code-blo
(self, **stream_options: Any)
| 225 | return ListingGenerator(self._reddit, API_PATH["sent"], **generator_kwargs) |
| 226 | |
| 227 | def stream(self, **stream_options: Any) -> Iterator[models.Comment | models.Message]: |
| 228 | """Yield new inbox items as they become available. |
| 229 | |
| 230 | Items are yielded oldest first. Up to 100 historical items will initially be |
| 231 | returned. |
| 232 | |
| 233 | Keyword arguments are passed to :func:`.stream_generator`. |
| 234 | |
| 235 | For example, to retrieve all new inbox items, try: |
| 236 | |
| 237 | .. code-block:: python |
| 238 | |
| 239 | for item in reddit.inbox.stream(): |
| 240 | print(item) |
| 241 | |
| 242 | """ |
| 243 | return stream_generator(self.unread, **stream_options) |
| 244 | |
| 245 | def submission_replies(self, **generator_kwargs: Any) -> Iterator[models.Comment]: |
| 246 | """Return a :class:`.ListingGenerator` for submission replies. |