subscribe

YouTubeNotifier.subscribe(channel_ids: str | Iterable[str]) Self

Subscribe to YouTube channels to receive push notifications. This is lazy and will subscribe when the notifier is ready. If the notifier is already ready, it will subscribe immediately.

Parameters:

channel_ids – The channel ID(s) to subscribe to.

Returns:

The current instance for method chaining.

Raises:
  • ValueError – If the channel ID is invalid.

  • HTTPError – If failed to verify the channel ID or failed to subscribe due to an HTTP error.