<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def loop(self):
 """ Return bot's main loop as coroutine. Use with asyncio. :Example: or """

        self._running = True
        while self._running:
            updates = await self.api_call(
                "getUpdates", offset=self._offset + 1, timeout=self.api_timeout
            )
            self._process_updates(updates)