Add suport for channels in get_cursor_id