subscribe¶
- async AsyncYouTubeNotifier.subscribe(channel_ids: str | Iterable[str]) None¶
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.
- 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.