async def rtm(<EOL>self, url: Optional[str] = None, bot_id: Optional[str] = None<EOL>) -> AsyncIterator[events.Event]:
while True:<EOL><INDENT>bot_id = bot_id or await self._find_bot_id()<EOL>url = url or await self._find_rtm_url()<EOL>async for event in self._incoming_from_rtm(url, bot_id):<EOL><INDENT>yield event<EOL><DEDENT>url = None<EOL><DEDENT>
Iterate over event from the RTM API

Args:
    url: Websocket connection url
    bot_id: Connecting bot ID

Returns:
    :class:`slack.events.Event` or :class:`slack.events.Message`